/* ==================== 魔术师 CG1 产品详情页 ==================== */

.magician-page {
  margin-top: var(--nav-height);
  background:
    linear-gradient(180deg, #07070B 0%, var(--bg-page) 420px, #050507 100%);
  min-height: 100vh;
}

.magician-hero {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050508;
  border-bottom: 1px solid var(--border-light);
}

.magician-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.72;
}

.magician-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #050508 0%, #050508 48%, rgba(5, 5, 8, 0.82) 66%, rgba(5, 5, 8, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.18) 0%, rgba(5, 5, 8, 0) 46%);
  pointer-events: none;
}

.magician-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0), var(--bg-page));
  pointer-events: none;
}

.magician-hero-inner {
  width: min(800px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 84px 0 94px;
}

.magician-kicker {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 0;
}

.magician-title {
  max-width: 560px;
  color: var(--text-primary);
  font-size: 52px;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.magician-desc {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 30px;
}

.magician-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.magician-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.magician-btn:hover {
  transform: translateY(-2px);
}

.magician-btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.magician-btn-primary:hover {
  background: var(--color-accent-hover);
}

.magician-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.magician-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.48);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.magician-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.magician-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 107, 53, 0.35);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
}

.magician-anchor {
  position: sticky;
  top: var(--nav-height);
  z-index: 70;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-light);
}

.magician-anchor-inner {
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}

.magician-anchor-inner::-webkit-scrollbar {
  display: none;
}

.magician-anchor-link {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: color var(--transition-base), background var(--transition-base);
}

.magician-anchor-link:hover,
.magician-anchor-link.is-active {
  color: #FFFFFF;
  background: var(--color-accent-dim);
}

.magician-detail-stack {
  width: min(800px, 100%);
  margin: 0 auto;
  background: #000000;
}

.magician-section {
  position: relative;
  width: 100%;
  margin: 0;
  scroll-margin-top: calc(var(--nav-height) + 62px);
}

.magician-section > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.magician-facecovers {
  display: block;
  padding: 22px 16px 28px;
  background:
    linear-gradient(180deg, #07070B 0%, #111117 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.magician-facecovers-title {
  display: block;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0;
}

.magician-facecover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.magician-facecover-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.magician-facecover-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.magician-facecover-card p {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}

.magician-spec-section {
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 18px 96px;
  background:
    linear-gradient(180deg, #101014 0%, #07070B 46%, #111116 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.magician-spec-card {
  width: min(680px, 100%);
  padding: 40px 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.magician-spec-kicker {
  color: var(--color-accent);
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.magician-spec-title {
  color: #FFFFFF;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0;
}

.magician-spec-table-wrap {
  overflow-x: auto;
}

.magician-spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.magician-spec-table tr {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.magician-spec-table tr:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.magician-spec-table th,
.magician-spec-table td {
  padding: 18px 0;
  vertical-align: top;
  font-size: 17px;
  line-height: 1.7;
}

.magician-spec-table th {
  width: 132px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.magician-spec-table td {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.magician-contact {
  padding: 54px 24px 64px;
  background: #07070B;
  border-top: 1px solid var(--border-light);
}

.magician-contact-inner {
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 107, 53, 0.28);
}

.magician-contact-kicker {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.magician-contact-title {
  color: #FFFFFF;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.magician-contact-wrap {
  flex: 0 0 auto;
}

.magician-contact-trigger {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.magician-contact-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.magician-contact-popup {
  left: auto;
  right: 0;
  z-index: 90;
}

.magician-contact-popup::after {
  left: auto;
  right: 24px;
}

.magician-backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.magician-backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.magician-backtop:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .magician-hero {
    min-height: 500px;
  }

  .magician-hero-media {
    object-position: center bottom;
  }

  .magician-hero::before {
    background: linear-gradient(180deg, #050508 0%, rgba(5, 5, 8, 0.98) 62%, rgba(5, 5, 8, 0.78) 100%);
  }

  .magician-hero-inner {
    width: calc(100% - 36px);
    padding: 56px 0 78px;
  }

  .magician-title {
    font-size: 34px;
    max-width: 330px;
  }

  .magician-desc {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.8;
  }

  .magician-hero-actions {
    gap: 10px;
    margin-bottom: 24px;
  }

  .magician-btn {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .magician-anchor-inner {
    padding: 9px 12px;
  }

  .magician-anchor-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .magician-facecovers {
    padding: 18px 12px 22px;
  }

  .magician-facecover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .magician-facecover-card p {
    min-height: 38px;
    font-size: 12px;
  }

  .magician-spec-section {
    min-height: 640px;
    padding: 54px 14px 64px;
  }

  .magician-spec-card {
    padding: 28px 18px;
  }

  .magician-spec-title {
    font-size: 30px;
    margin-bottom: 22px;
  }

  .magician-spec-table th,
  .magician-spec-table td {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .magician-spec-table th {
    padding-top: 14px;
    color: rgba(255, 255, 255, 0.58);
  }

  .magician-spec-table td {
    padding-bottom: 14px;
  }

  .magician-contact {
    padding: 44px 16px 52px;
  }

  .magician-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .magician-contact-popup {
    left: 0;
    right: auto;
    width: min(260px, calc(100vw - 80px));
  }

  .magician-contact-popup::after {
    left: 24px;
    right: auto;
  }

  .magician-contact-title {
    font-size: 24px;
  }

  .magician-backtop {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .magician-title {
    font-size: 44px;
  }
}
