/* ========================================
   音乐舞蹈学院 · 教学机构补充样式
   ======================================== */

/* 学院首页 · 沉浸式大画幅 */
.md-college-home .about-banner {
  display: none;
}

.md-immersive-hero {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: #1a0a12;
}

.md-hero-carousel {
  position: absolute;
  inset: 0;
}

.md-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  animation: mdKenBurns 12s ease-in-out infinite;
}

.md-hero-slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes mdKenBurns {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.md-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(60, 10, 30, 0.72) 0%,
    rgba(20, 8, 18, 0.45) 45%,
    rgba(10, 5, 12, 0.55) 100%
  );
}

.md-hero-video-deco {
  position: absolute;
  right: 8%;
  bottom: 18%;
  z-index: 3;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 95, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: mdFloat 4s ease-in-out infinite;
}

.md-hero-video-deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-hero-video-deco::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  animation: mdPulse 2s ease-in-out infinite;
}

@keyframes mdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mdPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}

.md-hero-notes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.md-hero-note {
  position: absolute;
  font-size: 28px;
  color: rgba(212, 175, 95, 0.25);
  animation: mdNoteDrift 8s linear infinite;
}

.md-hero-note:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.md-hero-note:nth-child(2) { left: 75%; top: 35%; animation-delay: 2s; font-size: 22px; }
.md-hero-note:nth-child(3) { left: 45%; top: 15%; animation-delay: 4s; font-size: 18px; }
.md-hero-note:nth-child(4) { left: 88%; top: 60%; animation-delay: 1s; }
.md-hero-note:nth-child(5) { left: 25%; top: 70%; animation-delay: 3s; font-size: 20px; }

@keyframes mdNoteDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-80px) rotate(15deg); opacity: 0; }
}

.md-hero-top {
  position: absolute;
  top: 24px;
  left: clamp(24px, 5vw, 48px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.md-hero-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.md-hero-college-name {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 26px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 4px;
}

.md-hero-motto {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--color-gold);
}

.md-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 48px 60px 36px;
  color: #fff;
}

.md-hero-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.md-hero-content p {
  font-size: 16px;
  opacity: 0.92;
  letter-spacing: 0.05em;
}

.md-hero-tagline {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(212, 175, 95, 0.6);
  color: var(--color-gold);
  border-radius: 2px;
}

.md-hero-dots {
  position: absolute;
  right: 60px;
  bottom: 40px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.md-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.md-hero-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.md-audio-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.md-audio-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
}

.md-audio-toggle.on {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.md-home-body {
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* 人才库 */
.md-talent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.md-talent-card {
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.md-talent-card:hover {
  box-shadow: 0 6px 20px rgba(140, 28, 28, 0.08);
}

.md-talent-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.md-talent-card-body {
  padding: 14px 16px;
}

.md-talent-card-body h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.md-talent-card-body .md-talent-field {
  font-size: 12px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.md-talent-card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.md-talent-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
}

/* 领导卡片 */
.md-leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.md-leader-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #faf8f7;
  border: 1px solid #eee5e2;
  border-radius: 4px;
}

.md-leader-card img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.md-leader-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.md-leader-card .md-leader-title {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.md-leader-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* 专业介绍 */
.md-major-card {
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
}

.md-major-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.md-major-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.md-major-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 12px;
}

.md-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.md-course-tag {
  padding: 4px 10px;
  font-size: 12px;
  background: #faf8f7;
  border: 1px solid #eee5e2;
  border-radius: 2px;
  color: #666;
}

/* 演出实况 */
.md-practice-card {
  display: flex;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
}

.md-practice-card img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.md-practice-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.md-practice-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.md-practice-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* 科研成果 */
.md-research-item {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #faf8f7;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
}

.md-research-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.md-research-meta {
  font-size: 12px;
  color: #888;
}

/* 学生活动 */
.md-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.md-activity-card {
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.md-activity-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.md-activity-card-body {
  padding: 14px 16px;
}

.md-activity-card-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.md-activity-card-body time {
  font-size: 12px;
  color: #999;
}

.md-activity-card-body p {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.65;
}

/* 合作伙伴 LOGO 矩阵 */
.md-partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.md-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.md-partner-item:hover {
  border-color: rgba(140, 28, 28, 0.25);
}

.md-partner-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.md-partner-item span {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 在线欣赏 · 瀑布流 */
.md-gallery-masonry {
  column-count: 3;
  column-gap: 16px;
}

.md-gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee5e2;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.md-gallery-item img {
  width: 100%;
  display: block;
}

.md-gallery-item figcaption {
  padding: 10px 12px;
  font-size: 13px;
}

.md-gallery-item figcaption strong {
  display: block;
  margin-bottom: 4px;
}

.md-gallery-item figcaption span {
  font-size: 11px;
  color: #999;
}

/* 成果展示 */
.md-achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.md-achievement-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee5e2;
}

.md-achievement-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.md-achievement-overlay {
  padding: 14px 16px;
  background: #faf8f7;
}

.md-achievement-overlay h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.md-achievement-overlay p {
  font-size: 13px;
  color: #666;
}

/* 统计 */
.md-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.md-stat-box {
  text-align: center;
  padding: 18px 12px;
  background: #faf8f7;
  border: 1px solid #eee5e2;
  border-radius: 4px;
}

.md-stat-box strong {
  display: block;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.md-stat-box span {
  font-size: 13px;
  color: #666;
}

/* 艺术团队 */
.md-art-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.md-art-team-card {
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
}

.md-art-team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.md-art-team-card-body {
  padding: 14px;
}

.md-art-team-card-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.md-art-team-card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .md-talent-grid,
  .md-art-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .md-gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .md-hero-content {
    padding: 32px 24px 28px;
  }
  .md-hero-dots {
    right: 24px;
    bottom: 28px;
  }
  .md-hero-video-deco {
    display: none;
  }
  .md-leader-grid,
  .md-activity-grid,
  .md-achievement-grid {
    grid-template-columns: 1fr;
  }
  .md-practice-card {
    flex-direction: column;
  }
  .md-practice-card img {
    width: 100%;
    height: 160px;
  }
  .md-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-talent-grid,
  .md-art-team-grid {
    grid-template-columns: 1fr;
  }
  .md-partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-gallery-masonry {
    column-count: 1;
  }
}
