/* ============================================================
   岗位角色页 · 增强样式包（科技工业风）
   依赖 style.css 的设计变量，仅作用于 roles/*.html
   ============================================================ */

/* ---------- 网格纹理背景（工业蓝图感） ---------- */
.role-hero, .role-sec {
  position: relative;
}
.role-sec--grid {
  background:
    linear-gradient(rgba(26,109,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,109,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 小节标签：脉冲圆点胶囊 ---------- */
.kicker.role-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(26,109,255,.28); background: var(--blue-soft);
  border-radius: 999px; padding: 6px 14px 6px 10px;
}
.kicker.role-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  animation: rolePulse 2.2s ease-in-out infinite;
}
@keyframes rolePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(26,109,255,.18); }
  50%     { box-shadow: 0 0 0 7px rgba(26,109,255,.05); }
}

/* ---------- 富卡片 rc：幽灵序号 + 顶部渐变线 + hover 抬升 ---------- */
.rc {
  position: relative; overflow: hidden;
  background: var(--surface, #fff); border: 1px solid var(--line);
  border-radius: var(--r-md, 14px); padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm, 0 4px 18px rgba(15,30,60,.05));
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s, border-color .4s;
}
.rc::before { /* 顶部渐变能量线 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.rc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md, 0 18px 44px rgba(15,30,60,.10)); border-color: rgba(26,109,255,.35); }
.rc:hover::before { opacity: 1; }
.rc .rc-no { /* 幽灵大序号水印 */
  position: absolute; right: 12px; top: 2px; font-family: var(--font-en);
  font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(26,109,255,.16);
  pointer-events: none; user-select: none;
  transition: -webkit-text-stroke-color .4s;
}
.rc:hover .rc-no { -webkit-text-stroke-color: rgba(26,109,255,.34); }
.rc h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; position: relative; }
.rc p { font-size: 14px; color: var(--muted); position: relative; }

/* 图标芯片 */
.rc-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), #dce9fd);
  border: 1px solid rgba(26,109,255,.18); margin-bottom: 16px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s;
}
.rc:hover .rc-icon { transform: scale(1.1) rotate(-4deg); box-shadow: 0 8px 20px rgba(26,109,255,.22); }
.rc-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--blue-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- M03 流程：编号大列表（参考核心能力页 02/核心能力） ---------- */
/* 浅蓝渐变 + 蓝图网格背景段 */
.role-sec--tint {
  background: linear-gradient(160deg, #eef3fb 0%, #e3ecf8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.role-sec--tint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.role-sec--tint::after {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  right: -260px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,183,255,.10), transparent 65%);
}
.role-sec--tint .container { position: relative; z-index: 1; }

/* 编号大列表：行分隔 + hover 右移 */
.role-nlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.role-nlist__item {
  display: grid; grid-template-columns: 90px minmax(0,.9fr) minmax(0,1.4fr); gap: 20px; align-items: baseline;
  padding: 26px 10px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .3s, padding-left .35s cubic-bezier(.22,.61,.36,1);
}
.role-nlist__item::before { /* 左侧能量指示条 */
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%; border-radius: 2px; background: var(--blue);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.role-nlist__item:hover { background: rgba(255,255,255,.65); padding-left: 24px; }
.role-nlist__item:hover::before { transform: translateY(-50%) scaleY(1); }
.role-nlist__no {
  font-family: "JetBrains Mono", var(--font-en); font-size: 13px;
  color: var(--blue); font-weight: 600; letter-spacing: .1em;
}
.role-nlist__item:hover .role-nlist__no { color: var(--blue-deep); }
.role-nlist__item h3 { font-size: 19px; font-weight: 700; }
.role-nlist__item p { font-size: 14.5px; color: var(--muted); }

/* ---------- M05 对比：双路径 + VS 徽标 ---------- */
.vs-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 17px;
  box-shadow: 0 0 0 6px var(--bg, #f5f8fc), 0 14px 30px rgba(26,109,255,.35);
}
.vs-old {
  background: #f3f5f9; border: 1px dashed #c3cddd; border-radius: var(--r-md, 14px);
  padding: 26px 24px; position: relative;
}
.vs-old .vs-tag { background: #e4e9f1; color: var(--muted); }
.vs-new {
  position: relative; overflow: hidden; border-radius: var(--r-md, 14px);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 70%, #0b3f9e 100%);
  color: #fff; padding: 26px 24px;
  box-shadow: 0 20px 46px rgba(26,109,255,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.vs-new p { color: rgba(255,255,255,.92); position: relative; }
.vs-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.vs-new .vs-tag { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.vs-old p { color: var(--muted); font-size: 14px; }
.vs-new p { font-size: 14px; }

/* ---------- M06 协同：圆形角色芯片 ---------- */
.role-orbit { text-align: center; }
.role-orbit .rc-icon {
  margin: 0 auto 16px; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, var(--blue-soft) 68%);
}
.role-orbit .rc:hover .rc-icon { animation: roleOrbitPulse 1.6s ease-in-out infinite; }
@keyframes roleOrbitPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(26,109,255,.14); }
  50%     { box-shadow: 0 0 0 9px rgba(26,109,255,.04); }
}

/* ---------- M07 场景卡：工业角标 ---------- */
.rc-corner { position: relative; }
.rc-corner::before, .rc-corner::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 2;
  border-color: var(--blue); border-style: solid; opacity: 0; transition: opacity .35s;
}
.rc-corner::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.rc-corner::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.rc-corner:hover::before, .rc-corner:hover::after { opacity: .9; }

/* ---------- Hero 媒体框：能量呼吸 ---------- */
.role-hero .media-frame { animation: roleBreathe 4.2s ease-in-out infinite; }
@keyframes roleBreathe {
  0%,100% { box-shadow: 0 18px 46px rgba(15,30,60,.12), 0 0 0 0 rgba(26,109,255,0); }
  50%     { box-shadow: 0 18px 46px rgba(15,30,60,.12), 0 0 0 9px rgba(26,109,255,.07); }
}

/* ---------- CTA 卡片清单 chips ---------- */
.role-chiplink {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff;
  transition: .3s;
}
.role-chiplink:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.role-chiplink i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

@media (max-width: 900px) {
  .vs-wrap { grid-template-columns: 1fr; }
  .vs-badge { display: none; }
  .role-nlist__item { grid-template-columns: 1fr; gap: 6px; padding: 20px 8px; }
}
