/* 实训中心 — 设计稿 62:4875 */
@import url("./practice-tokens.css");

/* 公共框架 .main 默认白玻璃；本页叠加稿面深色径向底（paint_62:00918） */
.main.practice-main {
  position: relative;
  isolation: isolate;
  background: var(--practice-bg-radial);
  color: var(--practice-text);
}

/* 全页质感：轻噪点 + 微光栅，不挡交互 */
.practice-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(21, 247, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(102, 0, 255, 0.12), transparent 50%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  mix-blend-mode: overlay;
}

.practice-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 1.5vw, 24px);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.practice-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* 整页高度随视口自适应：顶栏固定，主区吃满剩余高度 */
.root[data-name="实训中心"] {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.root[data-name="实训中心"] .main.practice-main {
  overflow: hidden;
}

.practice-primary {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

/* —— 实训教练：右下角浮层（替代本页航筑浮层） —— */
.practice-coach {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.practice-coach--dock {
  position: fixed;
  right: clamp(12px, 1.5vw, 22px);
  bottom: clamp(12px, 1.5vw, 22px);
  z-index: 1200;
  width: auto;
  max-width: min(592px, calc(100vw - 24px));
  pointer-events: none;
  animation: practice-coach-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}

.practice-coach--dock .practice-coach__dock {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.practice-coach--dock .practice-coach__content {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(412px, calc(100vw - 118px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 36px 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 55%),
    linear-gradient(125deg, rgba(14, 38, 88, 0.96) 0%, rgba(32, 18, 68, 0.94) 48%, rgba(11, 32, 64, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 0 0 1px rgba(21, 247, 255, 0.1),
    0 12px 36px rgba(0, 0, 0, 0.38);
  animation: practice-coach-card-glow 3.6s ease-in-out infinite;
}

.practice-coach--dock .practice-coach__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    180deg,
    rgba(67, 255, 195, 0.98) 0%,
    #15f7ff 45%,
    rgba(21, 247, 255, 0.35) 100%
  );
  box-shadow: 0 0 14px rgba(21, 247, 255, 0.35);
  pointer-events: none;
}

.practice-coach--dock .practice-coach__content::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: linear-gradient(135deg, rgba(18, 42, 92, 0.98) 0%, rgba(26, 16, 62, 0.97) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: rotate(-45deg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.practice-coach--dock .practice-coach__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.practice-coach--dock .practice-coach__close span {
  display: block;
  margin-top: -1px;
}

.practice-coach--dock .practice-coach__close:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.practice-coach--dock .practice-coach__close:focus-visible {
  outline: 2px solid rgba(21, 247, 255, 0.65);
  outline-offset: 2px;
}

.practice-coach--dock.is-bubble-closed .practice-coach__content {
  display: none;
}

.practice-coach--dock.is-bubble-closed {
  max-width: none;
}

.practice-coach--dock.is-hangzhu-drawer-open {
  visibility: hidden;
  pointer-events: none;
}

.practice-coach--dock .practice-coach__figure {
  flex: 0 0 auto;
  width: 92px;
  height: 118px;
  margin: 0;
  align-self: center;
  background: transparent;
  filter: none;
  animation: practice-coach-float 4.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.practice-coach--dock .practice-coach__figure:hover {
  animation-play-state: paused;
}

.practice-coach--dock .practice-coach__glow {
  width: 82%;
  height: 26%;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(21, 247, 255, 0.48) 0%, rgba(67, 255, 195, 0.12) 42%, transparent 72%);
  filter: blur(6px);
}

.practice-coach--dock .practice-coach__avatar {
  animation: none;
  filter: drop-shadow(0 12px 28px rgba(21, 247, 255, 0.32));
}

.practice-coach--dock .practice-coach__figure:hover .practice-coach__avatar {
  filter: drop-shadow(0 14px 32px rgba(67, 255, 195, 0.42));
  transform: translateY(-2px);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.practice-coach--dock .practice-coach__headline {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.practice-coach--dock .practice-coach__headline em {
  font-style: normal;
  color: #15f7ff;
  text-shadow: 0 0 14px rgba(21, 247, 255, 0.4);
}

.practice-coach--dock .practice-coach__text {
  max-height: none !important;
  overflow: visible !important;
  font-size: 14px;
  line-height: 22px;
  color: rgba(236, 252, 255, 0.9);
  text-wrap: pretty;
}

.practice-coach--dock.is-typing .practice-coach__text,
.practice-coach--dock.is-done .practice-coach__text {
  max-height: none;
  overflow: visible;
  overflow-y: visible;
}

@keyframes practice-coach-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes practice-coach-card-glow {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.09) inset,
      0 0 0 1px rgba(21, 247, 255, 0.06),
      0 8px 28px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 0 0 1px rgba(21, 247, 255, 0.12),
      0 10px 32px rgba(0, 0, 0, 0.36),
      0 0 20px rgba(21, 247, 255, 0.1);
  }
}

.practice-coach__card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 7px 14px 7px 11px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(21, 247, 255, 0.14);
  background:
    linear-gradient(92deg, rgba(21, 247, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 38%, transparent 72%),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 6px 18px rgba(0, 0, 0, 0.12);
}

.practice-coach__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 0 1px 1px 0;
  background: linear-gradient(
    180deg,
    #15f7ff 0%,
    rgba(21, 247, 255, 0.25) 100%
  );
  pointer-events: none;
}

.practice-coach__figure {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 52px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.practice-coach__figure:focus-visible {
  outline: 2px solid rgba(21, 247, 255, 0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

.practice-coach__glow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 64%;
  height: 16%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(21, 247, 255, 0.22) 0%, transparent 72%);
  filter: blur(4px);
  pointer-events: none;
}

.practice-coach__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  animation: practice-coach-float 4.2s ease-in-out infinite;
  transform-origin: center bottom;
  pointer-events: none;
}

.practice-coach__figure:hover .practice-coach__avatar {
  filter: drop-shadow(0 6px 14px rgba(21, 247, 255, 0.18));
}

.practice-coach__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1px 0;
}

.practice-coach__headline {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(21, 247, 255, 0.4);
}

.practice-coach__headline em {
  font-style: normal;
  color: #15f7ff;
}

.practice-coach:not(.practice-coach--dock) .practice-coach__text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: rgba(236, 252, 255, 0.92);
  max-height: 22px;
  overflow: hidden;
}

.practice-coach--dock .practice-coach__text {
  margin: 0;
}

.practice-coach--dock.is-typing .practice-coach__text {
  color: rgba(255, 255, 255, 0.94);
}

.practice-coach.is-typing .practice-coach__text::-webkit-scrollbar {
  display: none;
}

.practice-coach.is-typing .practice-coach__text::after {
  content: "|";
  margin-left: 1px;
  color: #15f7ff;
  font-weight: 400;
  animation: practice-coach-blink 0.85s step-end infinite;
}

.practice-coach.is-done:not(.practice-coach--dock) .practice-coach__text {
  max-height: 66px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 247, 255, 0.25) transparent;
}

.practice-coach:not(.practice-coach--dock).is-typing .practice-coach__text {
  color: #ffffff;
  overflow-y: auto;
  scrollbar-width: none;
}

@keyframes practice-coach-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes practice-coach-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-coach--dock {
    animation: none;
  }

  .practice-coach--dock .practice-coach__content {
    animation: none;
  }

  .practice-coach__avatar {
    animation: none;
  }

  .practice-coach__text {
    max-height: none;
    overflow: visible;
  }
}

/* —— 标题 + 专业卡片 —— */
.practice-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.practice-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.1vw, 12px);
  padding: 2px 0 4px;
}

.practice-hero__title h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(22px, 2.35vw, 28px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  background: linear-gradient(
    102deg,
    var(--practice-cyan) 0%,
    #7cf7ff 36%,
    var(--practice-mint) 68%,
    var(--practice-text) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 20px rgba(var(--practice-cyan-rgb), 0.32))
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}

.practice-hero__title h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -24px -6px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 120% at 50% 55%,
    rgba(var(--practice-cyan-rgb), 0.2) 0%,
    rgba(var(--practice-cyan-rgb), 0.06) 45%,
    transparent 72%
  );
}

.practice-hero__title h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 56px;
  height: 2px;
  transform: translateX(calc(-50% + 0.06em));
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--practice-cyan-rgb), 0.15) 18%,
    var(--practice-cyan) 50%,
    rgba(var(--practice-cyan-rgb), 0.15) 82%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(var(--practice-cyan-rgb), 0.45);
}

.practice-hero__ornament {
  flex: 0 1 298px;
  width: min(298px, 22vw);
  height: 22px;
  display: flex;
  align-items: center;
  line-height: 0;
}

.practice-hero__ornament svg {
  width: 100%;
  height: 100%;
  display: block;
}

.practice-hero__ornament--flip {
  transform: rotate(180deg);
}

.practice-hero__ornament--flip-v {
  transform: scaleY(-1);
}

.practice-hero__ornament--flip.practice-hero__ornament--flip-v {
  transform: rotate(180deg) scaleY(-1);
}

.practice-majors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.2vw, 16px);
  width: 100%;
  min-width: 0;
}

.practice-major {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid transparent;
  background-image:
    linear-gradient(155deg, #141d5c 0%, #2a1a72 48%, #5a12c8 100%),
    linear-gradient(135deg, rgba(82, 198, 211, 0.95) 0%, rgba(185, 138, 255, 0.9) 50%, rgba(82, 198, 211, 0.85) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 28px rgba(8, 12, 40, 0.28);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease;
}

.practice-major::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(67, 255, 195, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.85;
}

.practice-major.is-selected {
  border-width: 1.5px;
  transform: translateY(clamp(-8px, -0.8vh, -3px));
  background-image:
    linear-gradient(155deg, #12206a 0%, #3a1d8f 46%, #6d1adf 100%),
    linear-gradient(135deg, #43ffc3 0%, #15f7ff 42%, #b98aff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(67, 255, 195, 0.2),
    0 14px 36px rgba(67, 255, 195, 0.16),
    0 16px 40px rgba(17, 26, 82, 0.38);
}

.practice-major:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 14px 32px rgba(102, 0, 255, 0.28),
    0 10px 24px rgba(8, 12, 40, 0.3);
}

.practice-major.is-selected:hover {
  transform: translateY(clamp(-8px, -0.8vh, -3px));
}

.practice-major:focus-visible {
  outline: 2px solid #15f7ff;
  outline-offset: 3px;
}

.practice-major__cover {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 306 / 138;
  overflow: hidden;
}

.practice-major__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(17, 26, 82, 0.55) 78%, rgba(17, 26, 82, 0.92) 100%),
    linear-gradient(90deg, rgba(102, 0, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.practice-major__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
  filter: saturate(1.08) contrast(1.04);
}

.practice-major:hover .practice-major__cover img,
.practice-major.is-selected .practice-major__cover img {
  transform: scale(1.06);
}

.practice-major__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(12, 18, 56, 0.15) 0%, rgba(12, 18, 56, 0.35) 100%);
}

.practice-major__name {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: color 200ms ease;
}

.practice-major.is-selected .practice-major__name {
  font-size: 16px;
  line-height: 24px;
  color: #43ffc3;
  text-shadow: 0 0 16px rgba(67, 255, 195, 0.35);
}

.practice-major__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.practice-major__stat {
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.practice-major.is-selected .practice-major__stat {
  color: rgba(230, 255, 248, 0.92);
  background: rgba(67, 255, 195, 0.1);
  border-color: rgba(67, 255, 195, 0.22);
}

.practice-major__num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.practice-major.is-selected .practice-major__num {
  color: #43ffc3;
}

/* —— 岗位 / 核心能力 / 课程 —— */
.practice-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.6fr) minmax(180px, 0.85fr);
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: clamp(12px, 1.2vw, 16px);
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(28, 36, 88, 0.42) 0%, rgba(8, 12, 40, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden;
}

.practice-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0.7) 0%, transparent 75%);
  opacity: 0.9;
}

.practice-board::after {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  border-radius: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(21, 247, 255, 0.5) 18%,
    rgba(185, 138, 255, 0.6) 50%,
    rgba(21, 247, 255, 0.5) 82%,
    transparent
  );
  opacity: 0.85;
}

.practice-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  padding: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.practice-panel--jobs {
  background:
    linear-gradient(165deg, rgba(130, 70, 190, 0.22) 0%, rgba(70, 30, 120, 0.16) 100%);
}

.practice-panel--skills {
  background:
    linear-gradient(165deg, rgba(40, 150, 160, 0.22) 0%, rgba(28, 90, 110, 0.16) 100%);
}

.practice-panel--courses {
  background:
    linear-gradient(165deg, rgba(50, 160, 100, 0.2) 0%, rgba(28, 100, 70, 0.14) 100%);
}

.practice-panel__head {
  position: relative;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 13px 0 72px 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(270deg, rgba(89, 48, 232, 0) 0%, #5930e8 72%);
  border: none;
  box-shadow:
    0 6px 18px rgba(89, 48, 232, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.practice-panel__head::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 28%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.practice-panel__count {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.practice-panel__count::before {
  content: "(";
}

.practice-panel__count::after {
  content: ")";
}

.practice-panel--skills .practice-panel__head {
  background: linear-gradient(270deg, rgba(44, 134, 137, 0) 0%, #2c8689 72%);
  box-shadow:
    0 6px 18px rgba(44, 134, 137, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.practice-panel--courses .practice-panel__head {
  background: linear-gradient(270deg, rgba(58, 156, 88, 0) 0%, #3a9c58 72%);
  box-shadow:
    0 6px 18px rgba(58, 156, 88, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.practice-jobs,
.practice-courses {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.practice-job {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.practice-job:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(185, 138, 255, 0.28);
  transform: translateX(2px);
}

.practice-job.is-active {
  background: rgba(67, 255, 195, 0.1);
  border-color: rgba(67, 255, 195, 0.4);
  box-shadow:
    0 0 0 1px rgba(67, 255, 195, 0.08) inset,
    0 6px 16px rgba(67, 255, 195, 0.1);
}

.practice-job.is-active .practice-job__label {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #43ffc3;
}

.practice-job__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(198, 140, 255, 0.45) 0%, rgba(120, 60, 220, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 12px rgba(120, 60, 220, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.practice-job__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.practice-job__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.practice-skills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 12px 10px;
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.practice-skill {
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(47, 131, 144, 0.22) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 32px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.practice-skill:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(47, 131, 144, 0.4) 100%);
  border-color: rgba(21, 247, 255, 0.35);
  transform: translateY(-1px);
}

.practice-skill.is-active {
  background: rgba(67, 255, 195, 0.14);
  border-color: rgba(67, 255, 195, 0.5);
  box-shadow:
    0 0 0 1px rgba(67, 255, 195, 0.1) inset,
    0 6px 14px rgba(67, 255, 195, 0.12);
  color: #43ffc3;
}

.practice-empty {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.5);
  list-style: none;
}

.practice-course {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 180ms ease,
    box-shadow 200ms ease;
}

.practice-course:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(83, 255, 201, 0.28);
  box-shadow: 0 6px 16px rgba(58, 156, 88, 0.12);
  transform: translateX(2px);
}

.practice-course:focus-visible {
  outline: 2px solid rgba(21, 247, 255, 0.7);
  outline-offset: 2px;
}

.practice-course__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(120, 255, 200, 0.35) 0%, rgba(50, 160, 100, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 4px 12px rgba(58, 156, 88, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.practice-course__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.practice-course__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.practice-course__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: rgba(21, 247, 255, 0.85);
  opacity: 0.55;
  transition: opacity 200ms ease, transform 200ms ease;
}

.practice-course:hover .practice-course__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* —— 右侧证书 —— */
.practice-certs {
  flex: 0 0 clamp(260px, 22vw, 400px);
  width: clamp(260px, 22vw, 400px);
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

.practice-certs__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 2px 0 4px;
}

.practice-certs__title img {
  width: 28px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(255, 164, 67, 0.35));
}

.practice-certs__title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255, 164, 67, 0.28);
}

.practice-certs__wing-flip {
  transform: scaleX(-1);
}

.practice-certs__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  min-height: 0;
  padding: 2px 4px 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 164, 67, 0.35) transparent;
}

.practice-cert {
  --cert-accent: #ffa443;
  position: relative;
  min-height: 112px;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  padding: 18px 16px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 164, 67, 0.38) 0%, rgba(255, 120, 40, 0.08) 48%, rgba(20, 24, 40, 0.35) 100%),
    rgba(255, 164, 67, 0.16);
  border: 1px solid rgba(255, 194, 120, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

.practice-cert::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
    linear-gradient(125deg, rgba(255, 164, 67, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.practice-cert::after {
  content: none;
}

.practice-cert:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 150, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 16px 36px rgba(255, 140, 40, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.practice-cert:focus-visible {
  outline: 2px solid #ffa443;
  outline-offset: 3px;
}

.practice-cert__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.78;
  transform: scale(1.02);
  transition: opacity 220ms ease, transform 280ms ease;
}

.practice-cert:hover .practice-cert__bg {
  opacity: 0.9;
  transform: scale(1.05);
}

.practice-cert__icon {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  z-index: 2;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 164, 67, 0.12) inset;
  object-fit: contain;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-cert:hover .practice-cert__icon {
  transform: translateY(-2px) scale(1.04);
}

.practice-cert__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
  max-width: none;
}

.practice-cert__name {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.practice-cert__meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 248, 238, 0.92);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 194, 120, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 证书简介弹窗 —— */
.practice-cert-dialog[hidden] {
  display: none !important;
}

.practice-cert-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.practice-cert-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 28, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.practice-cert-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 28px 28px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 194, 120, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 180, 90, 0.16) 0%, rgba(20, 24, 48, 0.92) 42%, rgba(12, 16, 36, 0.96) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 56px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  outline: none;
}

.practice-cert-dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.practice-cert-dialog__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.practice-cert-dialog__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 32px;
  margin-bottom: 18px;
}

.practice-cert-dialog__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 5px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 194, 120, 0.3);
  box-sizing: border-box;
}

.practice-cert-dialog__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.practice-cert-dialog__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #ffffff;
}

.practice-cert-dialog__meta {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 220, 180, 0.88);
}

.practice-cert-dialog__desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.practice-cert-dialog__tip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 194, 120, 0.22);
  background: rgba(255, 164, 67, 0.1);
}

.practice-cert-dialog__tip-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffa443;
}

.practice-cert-dialog__tip-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 248, 238, 0.9);
}

.practice-cert-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.practice-cert-dialog__link,
.practice-cert-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.practice-cert-dialog__link {
  color: #1a1208;
  background: linear-gradient(115deg, #ffd39a 0%, #ffa443 55%, #ff8a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(255, 140, 40, 0.28);
}

.practice-cert-dialog__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 140, 40, 0.36);
}

.practice-cert-dialog__btn {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.practice-cert-dialog__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

body.is-cert-dialog-open {
  overflow: hidden;
}

/* 小分辨率：优先可滚动，避免 100vh 裁切 */
@media (max-width: 1440px) {
  .root[data-name="实训中心"] {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .root[data-name="实训中心"] .main.practice-main {
    overflow: auto;
    height: auto;
    min-height: calc(100vh - var(--top-h, 80px));
  }

  .practice-layout {
    gap: 16px;
  }

  .practice-board {
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.5fr) minmax(150px, 0.8fr);
    gap: 12px;
    min-height: 360px;
  }

  .practice-majors {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .practice-major__meta {
    gap: 6px;
    font-size: 12px;
    line-height: 18px;
  }

  .practice-certs {
    flex-basis: clamp(220px, 20vw, 320px);
    width: clamp(220px, 20vw, 320px);
  }

  .practice-hero__title h1 {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .practice-hero__title h1::after {
    width: 44px;
  }
}

@media (max-width: 1280px) {
  .practice-layout {
    flex-direction: column;
    height: auto;
  }

  .practice-primary,
  .practice-board,
  .practice-panel,
  .practice-certs {
    height: auto;
  }

  .practice-majors {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: stretch;
  }

  .practice-certs {
    flex: 0 0 auto;
    width: 100%;
  }

  .practice-certs__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    overflow: visible;
  }

  .practice-board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "jobs skills"
      "courses courses";
    min-height: 0;
  }

  .practice-panel--jobs {
    grid-area: jobs;
  }

  .practice-panel--skills {
    grid-area: skills;
  }

  .practice-panel--courses {
    grid-area: courses;
  }

  .practice-jobs,
  .practice-courses,
  .practice-skills {
    max-height: 280px;
  }

  .practice-skills {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 900px) {
  .practice-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "jobs"
      "skills"
      "courses";
  }

  .practice-certs__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .practice-majors {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .practice-major.is-selected {
    transform: none;
  }

  .practice-major__name {
    font-size: 14px;
    line-height: 20px;
  }

  .practice-panel__head {
    font-size: 13px;
  }
}
