/* ============================================================
   成长分组：成长路径 · Passport · 赛事信息
   在 creator-premium.css 之后加载；所有选择器限定在
   .growth-page / .passport-page / .events-page 内，不改全局变量。
   ============================================================ */

/* ---------- 共用：页头、配图线条 ---------- */
.growth-page-head,
.growth-page .growth-heading { padding: 0; margin: 0 0 28px; text-align: left; }
.growth-page-head h1,
.growth-page .growth-heading h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.growth-page-head p,
.growth-page .growth-heading > p { max-width: 620px; margin: 8px 0 0; margin-inline: 0; color: var(--c-text-2); font-size: 15px; font-weight: 400; line-height: 1.6; }

.growth-page svg .ga-frame, .events-page svg .ga-frame { fill: none; stroke: #aeaeb2; stroke-width: 2; stroke-linejoin: round; }
.growth-page svg .ga-fill, .events-page svg .ga-fill { fill: #fff; }
.growth-page svg .ga-line, .events-page svg .ga-line { fill: none; stroke: #c7c7cc; stroke-width: 2; stroke-linecap: round; }
.growth-page svg .ga-dash, .events-page svg .ga-dash { fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 6; }
.growth-page svg .ga-dot, .events-page svg .ga-dot { fill: #d1d1d6; }
.growth-page svg .ga-accent-fill, .events-page svg .ga-accent-fill { fill: var(--c-primary); }
.growth-page svg .ga-accent-soft { fill: var(--c-primary-soft); stroke: var(--c-primary); stroke-width: 2; }
.growth-page svg .ga-accent-line { fill: none; stroke: var(--c-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.growth-page svg .ga-on-accent { fill: #fff; }

.growth-page .hub-link span, .events-page .hub-link span { font-size: 18px; line-height: 1; }

/* ---------- 成长路径：分段切换 ---------- */
.growth-page .growth-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  margin: 0 0 20px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.12);
}
.growth-page .growth-switch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--c-text);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.growth-switch-item:hover { background: rgba(255, 255, 255, 0.5); }
.growth-switch-item strong { font-size: 15px; font-weight: 600; }
.growth-switch-item span { color: var(--c-text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.growth-switch-item.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.growth-switch-item:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.5); outline-offset: 1px; }

/* ---------- 成长路径：详情 ---------- */
.growth-page .growth-details { display: block; margin: 0; }
.growth-page .growth-detail { padding: 0; border-radius: var(--radius-l); background: var(--c-surface); overflow: hidden; }
.growth-page .growth-detail[hidden] { display: none; }
.growth-page .growth-detail:focus, .growth-page .growth-detail:focus-visible { outline: none; }

.growth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 32px; padding: 40px 40px 32px; }
.growth-program { display: block; color: var(--c-text-2); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.growth-hero h2 { margin: 6px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.growth-tagline { margin: 4px 0 0; font-size: 19px; font-weight: 500; color: var(--c-text); }
.growth-page .growth-description { max-width: 460px; margin: 12px 0 24px; color: var(--c-text-2); font-size: 15px; line-height: 1.65; }
.growth-art { display: grid; place-items: center; margin: 0; aspect-ratio: 27 / 17; border-radius: var(--radius); background: var(--c-muted); }
.growth-art svg { width: 86%; height: auto; }

.growth-page .growth-record { margin: 0 40px; padding: 24px 0; border-top: 1px solid var(--c-hairline); }
.growth-page .growth-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.growth-page .growth-detail h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.growth-page .growth-progress-head > .sub { color: var(--c-text-3); font-size: 13px; }
.growth-page .growth-progress-value { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 12px; }
.growth-page .growth-progress-value strong { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--c-text); }
.growth-page .growth-progress-value strong small { margin-left: 2px; font-size: 20px; font-weight: 500; color: var(--c-text-2); }
.growth-page .growth-progress-value span { color: var(--c-text-2); font-size: 14px; }
.growth-page .growth-record .progress-track { height: 6px; border-radius: 3px; background: #e8e8ed; }

/* 作品选择：系统风格弹出按钮 */
.growth-page .growth-project-label { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text-2); font-size: 13px; }
.growth-page .growth-project-label select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 240px;
  min-height: 34px;
  padding: 6px 34px 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M1.5 5 5 1.5 8.5 5M1.5 9 5 12.5 8.5 9' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.growth-page .growth-project-label select:hover { background-color: var(--c-fill-strong); }
.growth-page .growth-project-label select:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.5); outline-offset: 2px; }

/* 任务阶段：竖向时间线 */
.growth-stage-block { margin: 0 40px; padding: 24px 0 8px; border-top: 1px solid var(--c-hairline); }
.growth-page .growth-stage-title span { margin-left: 8px; color: var(--c-text-3); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.growth-page .growth-stages { display: block; margin: 16px 0 0; padding: 0; list-style: none; }
.growth-page .growth-stages > li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 0 0 22px;
  border: 0;
  border-radius: 0;
  background: none;
}
.growth-page .growth-stages > li::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--c-line); }
.growth-page .growth-stages > li:last-child::before { display: none; }
.growth-page .growth-stage-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  color: var(--c-text-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.growth-stage-body { min-width: 0; padding-top: 3px; }
.growth-page .growth-stages strong { display: block; font-size: 15px; font-weight: 600; }
.growth-page .growth-stages ul { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--c-text-2); font-size: 13px; line-height: 1.6; }
.growth-page .growth-stages small { margin: 0; padding-top: 5px; color: var(--c-text-3); font-size: 13px; white-space: nowrap; }
.growth-page .growth-stages .is-current .growth-stage-number { background: var(--c-primary); box-shadow: none; color: #fff; }
.growth-page .growth-stages .is-current small { color: var(--c-primary); font-weight: 500; }
.growth-page .growth-stages .is-done .growth-stage-number { background: var(--c-success); box-shadow: none; color: #fff; }
.growth-page .growth-stages .is-done::before { background: var(--c-success); }
.growth-page .growth-stages .is-done small { color: var(--c-success); }

/* 准入规则与能力评价 */
.growth-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 40px; padding: 8px 0 24px; }
.growth-page .growth-rule,
.growth-page .growth-ability { display: block; padding: 20px 22px; border: 0; border-radius: var(--radius); background: var(--c-muted); font-size: 14px; }
.growth-page .growth-rule p,
.growth-page .growth-ability p { margin: 8px 0 0; color: var(--c-text-2); font-size: 14px; line-height: 1.65; }
.growth-ability-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.growth-page .growth-ability-note { color: var(--c-text-3); font-size: 13px; }
.growth-page .growth-ability .hub-link { margin-top: 10px; font-size: 14px; }
.growth-page .growth-detail-footer { display: block; margin: 0; padding: 16px 40px; border-top: 1px solid var(--c-hairline); background: #fbfbfd; color: var(--c-text-3); font-size: 12px; }
.growth-page .growth-footnote { margin: 20px 4px 0; color: var(--c-text-3); font-size: 12px; line-height: 1.8; }
.growth-page .growth-footnote .hub-boundary { margin: 0; font-size: inherit; color: inherit; }
.growth-page .growth-footnote .hub-link { margin-left: 6px; font-size: 12px; }

/* ---------- Passport ---------- */
.passport-page .passport-identity {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-l);
  background: var(--c-surface);
  color: var(--c-text);
  overflow: hidden;
}
.passport-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.passport-pattern circle { fill: none; stroke: rgba(0, 113, 227, 0.06); stroke-width: 1; }
.passport-holder { position: relative; display: flex; align-items: center; gap: 18px; min-width: 0; }
.passport-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: #8e8e93; }
.passport-page .passport-identity .passport-avatar { color: #fff; font-size: 26px; font-weight: 600; }
.passport-page .passport-identity .passport-kicker { color: var(--c-text-2); font-size: 13px; }
.passport-page .passport-identity h2 { margin: 2px 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-text); }
.passport-page .passport-identity p { margin: 0; color: var(--c-text-2); font-size: 14px; overflow-wrap: anywhere; }
.passport-page .passport-level { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; text-align: center; }
.passport-level-ring { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.passport-level-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.passport-level-ring .ring-track { fill: #fff; stroke: #e8e8ed; stroke-width: 5; }
.passport-level-ring .ring-value { fill: none; stroke: var(--c-primary); stroke-width: 5; stroke-linecap: round; }
.passport-page .passport-level strong { position: relative; display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-text); }
.passport-page .passport-level > span:last-child { color: var(--c-text-2); font-size: 13px; white-space: nowrap; }

.passport-page .passport-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; padding: 20px 0; border-radius: var(--radius); background: var(--c-surface); }
.passport-page .passport-stats > div { padding: 0 12px; text-align: center; }
.passport-page .passport-stats > div + div { border-left: 1px solid var(--c-hairline); }
.passport-page .passport-stats strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-text); font-variant-numeric: tabular-nums; }
.passport-page .passport-stats span { color: var(--c-text-2); font-size: 13px; }

.passport-page .passport-journey,
.passport-page .passport-cert { margin-top: 12px; padding: 28px 32px; border-radius: var(--radius-l); }
.passport-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.passport-section-head h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.passport-section-head > span:not(.badge) { color: var(--c-text-3); font-size: 13px; }
.passport-cert .passport-section-head { align-items: center; }

.passport-page .passport-track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 28px 0 20px; padding: 0; list-style: none; }
.passport-page .passport-track::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 7px; height: 2px; border-radius: 1px; background: #e8e8ed; }
.passport-page .passport-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; padding: 0 4px; border: 0; border-radius: 0; background: none; color: var(--c-text-2); text-align: center; }
.passport-dot { width: 16px; height: 16px; margin-bottom: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d2d2d7; }
.passport-page .passport-node b { display: block; font-size: 13px; font-weight: 600; color: var(--c-text-3); }
.passport-node-name { font-size: 14px; font-weight: 500; color: var(--c-text); }
.passport-page .passport-node small { display: block; margin-top: 2px; font-size: 12px; color: var(--c-text-3); }
.passport-page .passport-node.current { background: none; border: 0; }
.passport-page .passport-node.current .passport-dot { background: var(--c-primary); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.passport-page .passport-node.current b, .passport-page .passport-node.current small { color: var(--c-primary); }
.passport-page .evidence-meta { margin: 0; color: var(--c-text-3); font-size: 13px; }

.passport-page .passport-cert > p { margin: 10px 0 20px; color: var(--c-text-2); font-size: 15px; }
.passport-page .head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.passport-page .form-message, .events-page .form-message { min-height: 0; margin: 12px 0 0; color: var(--c-text-2); font-size: 13px; }
.passport-page .form-message:empty, .events-page .form-message:empty { display: none; }

/* ---------- 赛事信息 ---------- */
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 16px; }
.events-list { display: grid; gap: 16px; min-width: 0; }
.events-page .card { padding: 28px 32px; border-radius: var(--radius-l); }
.event-status { color: var(--c-text-2); font-size: 13px; font-weight: 500; }
.event-card h2 { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.event-summary { margin: 10px 0 0; color: var(--c-text-2); font-size: 15px; line-height: 1.65; }
.events-page .event-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 20px 0 24px; border-top: 1px solid var(--c-hairline); }
.event-details > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--c-hairline); }
.event-details dt { color: var(--c-text-3); font-size: 12px; }
.event-details dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.events-page .head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.event-card .evidence-meta { margin: 16px 0 0; color: var(--c-text-3); font-size: 12px; }

.events-page .events-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 32px 40px; text-align: center; }
.events-empty-art { width: 200px; height: auto; margin-bottom: 20px; }
.events-empty h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.events-empty p { max-width: 360px; margin: 8px 0 22px; color: var(--c-text-2); font-size: 15px; line-height: 1.6; }

.events-page .events-prep { padding: 24px; }
.events-prep-kicker { color: var(--c-text-2); font-size: 13px; font-weight: 500; }
.events-prep h2 { margin: 4px 0 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.events-prep ul { margin: 0 0 16px; padding: 0; list-style: none; }
.events-prep li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-hairline); font-size: 15px; }
.events-prep li small { grid-column: 2; margin-top: 2px; color: var(--c-text-3); font-size: 12px; }
.events-prep-mark { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.events-prep li.is-required .events-prep-mark { box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.events-prep li.is-required small { color: var(--c-primary); }
.events-prep .evidence-meta { margin: 0 0 12px; color: var(--c-text-3); font-size: 12px; line-height: 1.6; }
.events-prep .hub-link { font-size: 14px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .events-layout { grid-template-columns: minmax(0, 1fr); }
  .passport-page .passport-track { grid-template-columns: repeat(7, minmax(72px, 1fr)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}
@media (max-width: 860px) {
  .growth-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .growth-art { order: -1; max-width: 360px; width: 100%; }
}
@media (max-width: 760px) {
  .growth-page-head h1, .growth-page .growth-heading h1 { font-size: 28px; }
  .growth-switch-item { padding: 8px 6px; }
  .growth-switch-item strong { font-size: 14px; }
  .growth-switch-item span { font-size: 11px; }
  .growth-hero { padding: 24px 20px 20px; }
  .growth-hero h2 { font-size: 26px; }
  .growth-hero .btn { width: 100%; }
  .growth-art { max-width: none; }
  .growth-page .growth-record, .growth-stage-block, .growth-facts { margin: 0 20px; }
  .growth-page .growth-progress-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .growth-page .growth-project-label { width: 100%; }
  .growth-page .growth-project-label select { flex: 1; width: 0; max-width: none; }
  .growth-page .growth-stage-title span { display: block; margin: 4px 0 0; }
  .growth-page .growth-stages > li { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; }
  .growth-page .growth-stages small { grid-column: 2; grid-row: 2; padding: 0; }
  .growth-page .growth-stages > li::before { bottom: 2px; }
  .growth-facts { grid-template-columns: minmax(0, 1fr); }
  .growth-page .growth-detail-footer { padding: 14px 20px; }

  .passport-page .passport-identity { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .passport-page .passport-level { flex-direction: row; gap: 12px; }
  .passport-level-ring { width: 56px; height: 56px; }
  .passport-page .passport-level strong { font-size: 18px; }
  .passport-page .passport-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; padding: 18px 0; }
  .passport-page .passport-stats > div:nth-child(4) { border-left: 0; }
  .passport-page .passport-stats strong { font-size: 24px; }
  .passport-page .passport-journey, .passport-page .passport-cert { padding: 22px 20px; }
  .passport-page .passport-track { display: block; overflow: visible; margin: 20px 0 16px; }
  .passport-page .passport-track::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .passport-page .passport-node { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 8px 0; text-align: left; }
  .passport-dot { margin: 0; }
  .passport-page .passport-node small { margin: 0; }
  .passport-page .head-actions .btn { flex: 1 1 auto; }

  .events-page .card { padding: 22px 20px; }
  .events-page .event-details { grid-template-columns: minmax(0, 1fr); }
  .events-page .events-empty { padding: 36px 20px 28px; }
}
