/* ==========================================================================
   格物制之 × Smartisan Tactile Learning Paths
   ========================================================================== */

.ycsa-paths-page {
  flex: 1;
  padding-top: 4px;
}

.ycsa-paths-header {
  margin-top: 12px;
}

.ycsa-paths-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 32px;
  background: var(--sm-bg-elevated);
  border: 1px solid var(--sm-card-border);
  border-radius: 10px;
  box-shadow: var(--sm-card-shadow);
}

.ycsa-paths-eyebrow {
  margin: 0 0 8px;
  color: var(--sm-blue);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ycsa-paths-heading h1 {
  margin: 0;
  color: var(--sm-text-heading);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.ycsa-paths-heading > p {
  max-width: 420px;
  margin: 0 0 2px;
  color: var(--sm-text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.ycsa-paths-content {
  padding-top: 24px;
  padding-bottom: 64px;
}

.ycsa-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ycsa-path-card {
  --path-bg: #272c3a;
  --path-bg-end: #171a24;
  --path-accent: #7da2ff;
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 272px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--path-bg), var(--path-bg-end));
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ycsa-path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

:root[data-theme="dark"] .ycsa-path-card {
  border-color: #323039;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ycsa-path-card.is-dev { --path-bg: #253445; --path-bg-end: #16202c; --path-accent: #78a3ff; }
.ycsa-path-card.is-design { --path-bg: #3f344d; --path-bg-end: #272033; --path-accent: #d9a7f0; }
.ycsa-path-card.is-video { --path-bg: #2e384b; --path-bg-end: #1b2230; --path-accent: #7cc9f7; }
.ycsa-path-card.is-marketing { --path-bg: #4b3930; --path-bg-end: #2e231e; --path-accent: #e5b880; }
.ycsa-path-card.is-office { --path-bg: #2c403c; --path-bg-end: #1b2927; --path-accent: #7cd4b2; }

.ycsa-path-card-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to left, #000 0%, transparent 76%);
}

.ycsa-path-number,
.ycsa-path-label {
  position: absolute;
  top: 22px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ycsa-path-number { left: 26px; color: rgba(255, 255, 255, 0.48); }
.ycsa-path-label { right: 24px; color: var(--path-accent); }

.ycsa-path-art {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 184px;
  height: 156px;
  transform: translate(-50%, -50%);
}

.ycsa-path-art-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.025), 0 0 0 36px rgba(255, 255, 255, 0.015);
}

.ycsa-path-art-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: color-mix(in srgb, var(--path-accent) 24%, rgba(20, 20, 24, 0.45));
  color: var(--path-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) rotate(-4deg);
  transition: transform 220ms ease;
}

.ycsa-path-art-icon svg {
  width: 48px;
  height: 48px;
  transform: rotate(4deg);
}

.ycsa-path-card:hover .ycsa-path-art-icon {
  transform: translate(-50%, -53%) rotate(0deg) scale(1.04);
}

.ycsa-path-art-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--path-accent);
  box-shadow: 0 0 14px var(--path-accent);
}

.ycsa-path-art-dot.dot-one { left: 17px; top: 32px; }
.ycsa-path-art-dot.dot-two { right: 15px; bottom: 25px; width: 6px; height: 6px; opacity: 0.72; }

.ycsa-path-card-copy {
  position: absolute;
  z-index: 3;
  left: 28px;
  right: 74px;
  bottom: 24px;
  display: block;
}

.ycsa-path-card-meta {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.ycsa-path-card-copy strong {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ycsa-path-card-description {
  display: block;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.65;
  opacity: 0;
  transition: max-height 220ms ease, margin 220ms ease, opacity 220ms ease;
}

.ycsa-path-card:hover .ycsa-path-card-description {
  max-height: 48px;
  margin-top: 7px;
  opacity: 1;
}

.ycsa-path-arrow {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ycsa-path-card:hover .ycsa-path-arrow {
  background: var(--path-accent);
  color: #141317;
  transform: translateX(2px);
}

.ycsa-paths-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  border: 1px solid var(--sm-card-border);
  border-radius: 11px;
  background: var(--sm-bg-elevated);
  padding: 24px 28px;
  box-shadow: var(--sm-card-shadow);
}

.ycsa-paths-start > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 15px;
}

.ycsa-paths-start-icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--sm-brand-ring);
  background: var(--sm-brand-soft);
  color: var(--sm-blue);
}

.ycsa-paths-start h2 {
  margin: 0 0 5px;
  color: var(--sm-text-heading);
  font-size: 15px;
  font-weight: 700;
}

.ycsa-paths-start p {
  max-width: 650px;
  margin: 0;
  color: var(--sm-text-secondary);
  font-size: 12.5px;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .ycsa-paths-heading { align-items: flex-start; flex-direction: column; gap: 18px; padding: 36px 0 28px; }
  .ycsa-paths-heading > p { max-width: 620px; }
  .ycsa-paths-content { padding-top: 20px; padding-bottom: 52px; }
  .ycsa-paths-grid { grid-template-columns: 1fr; gap: 14px; }
  .ycsa-path-card { min-height: 244px; }
  .ycsa-path-card-description { max-height: 48px; margin-top: 7px; opacity: 1; }
  .ycsa-paths-start { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px; }
}

@media (max-width: 420px) {
  .ycsa-paths-heading h1 { font-size: 28px; }
  .ycsa-path-card { min-height: 230px; }
  .ycsa-path-art { transform: translate(-50%, -53%) scale(0.86); }
  .ycsa-path-card-copy { left: 22px; right: 60px; bottom: 20px; }
  .ycsa-path-card-copy strong { font-size: 20px; }
  .ycsa-path-arrow { right: 18px; bottom: 20px; }
}
