/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.47059;
  overflow-x: hidden;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 22px;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  text-decoration: none;
}

.nav-fade {
  color: #86868b;
  font-weight: 400;
}

/* === Hero === */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 22px;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #86868b;
  letter-spacing: 0.02em;
}

/* === Intro === */
.intro {
  padding: 20px 22px 60px;
  max-width: 680px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #515154;
  text-align: center;
}

/* === Section Title === */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1d1d1f;
  margin-bottom: 40px;
}

/* === Team Grid === */
.team {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.3s; }
.team-card:nth-child(2) { animation-delay: 0.5s; }
.team-card:nth-child(3) { animation-delay: 0.7s; }

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* === Card Image === */
.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e8ed;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.team-card:hover .image-wrapper {
  transform: scale(1.03);
}

.ceo-img { background-image: url('ceo.jpg'); }
.music-img { background-image: url('music.jpg'); }
.creative-img { background-image: url('creative.jpg'); }

/* === Card Info === */
.card-info {
  padding: 22px 22px 26px;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: #1d1d1f;
}

.card-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #515154;
  margin-bottom: 12px;
}

.card-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0071e3;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.team-card:hover .card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* === Detail Views === */
.detail-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.detail-view.active {
  display: flex;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.detail-card {
  position: relative;
  width: 90%;
  max-width: 780px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.detail-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.detail-layout {
  display: none;
}

.detail-image {
  display: none;
}

.detail-member-top {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: #e8e8ed;
}

.detail-member-img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.detail-content {
  padding: 40px 36px 40px 32px;
}

.detail-role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.detail-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: #1d1d1f;
}

.detail-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-name-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #C20C0C;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.detail-name-link:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(194,12,12,0.35);
}

.detail-name-link-dark {
  background: #1d1d1f;
}

.detail-name-link-dark:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.detail-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: #515154;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8ed;
}

.detail-abilities h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-abilities ul {
  list-style: none;
  padding: 0;
}

.detail-abilities li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #515154;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f2;
}

.detail-abilities li:last-child {
  border-bottom: none;
}

.detail-abilities li strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* === Products Section === */
.products {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

/* === Product Carousel === */
.product-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 12px;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

/* === Product Card (white rounded card, matching team card) === */
.product-card {
  flex: 0 0 calc(100vw - 72px);
  max-width: 420px;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.product-card:active:hover {
  transform: scale(0.98);
}

/* === Product Mockup (unified area) === */
.product-mockup {
  width: 100%;
  max-width: 200px;
  height: 140px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-window {
  width: 200px;
  height: 140px;
  max-width: 100%;
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.window-bar {
  height: 24px;
  background: #242220;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.window-content {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  height: calc(100% - 24px);
}

.window-panel {
  border-radius: 6px;
}

/* === Music Icon Frame === */
.music-icon-frame {
  width: 140px;
  height: 140px;
  border-radius: 22px;
  background: linear-gradient(135deg, #C20C0C 0%, #8B0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(194, 12, 12, 0.2);
}

.music-icon {
  font-size: 3rem;
}

/* === Product Tag === */
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.product-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0071e3;
}

.product-tag-dot-music {
  background: #C20C0C;
}

/* === Product Name === */
.product-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.25;
  flex-shrink: 0;
}

/* === Product Desc === */
.product-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #515154;
  max-width: 360px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* === Product Features === */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.product-features span {
  font-size: 0.75rem;
  color: #86868b;
  background: #f5f5f7;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* === Product CTA === */
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0071e3;
  transition: gap 0.25s;
  flex-shrink: 0;
}

.product-card:hover .product-cta {
  gap: 8px;
}

.product-cta-music {
  color: #C20C0C;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 40px 22px 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
  font-size: 0.8rem;
  color: #86868b;
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive === */
/* Desktop (≥769px): 2-column grid */
@media (min-width: 769px) {
  .product-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 24px;
    padding: 4px 0 8px;
  }

  .product-carousel .product-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
    padding: 40px 32px 44px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .intro-text p {
    font-size: 1.05rem;
  }

  .detail-layout {
    display: none;
  }

  .detail-image {
    display: none;
  }

  .detail-member-top {
    max-height: 220px;
  }

  .detail-member-img {
    height: 220px;
  }

  .detail-content {
    padding: 28px 24px 32px;
  }

  .products {
    padding: 0 16px 60px;
  }

  .product-carousel {
    gap: 16px;
    padding: 4px 4px 12px;
  }

  .product-card {
    flex: 0 0 75vw;
    max-width: 340px;
    padding: 28px 22px 32px;
  }

}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .card-info {
    padding: 20px 18px 24px;
  }

  .detail-card {
    width: 95%;
  }

  .product-carousel {
    gap: 12px;
  }

  .product-card {
    flex: 0 0 82vw;
    padding: 24px 18px 28px;
  }

  .product-mockup {
    max-width: 160px;
    height: 115px;
  }

  .product-window {
    width: 160px;
    height: 115px;
  }

  .music-icon-frame {
    width: 115px;
    height: 115px;
    border-radius: 18px;
  }

  .music-icon {
    font-size: 2.5rem;
  }

  .discog-card {
    min-width: 130px;
    flex: 1 1 130px;
  }
}

/* === Music Modal Redesign === */
.detail-card-music {
  max-width: 720px;
  padding: 0;
  overflow-y: auto;
}

.detail-card-music .detail-layout {
  display: block;
  min-height: auto;
}

.music-modal-header {
  padding: 40px 36px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.music-modal-header-left {
  flex: 1;
}

.music-modal-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.music-modal-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #515154;
  max-width: 440px;
}

.music-modal-header-right {
  flex-shrink: 0;
}

.music-netease-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.music-netease-link:hover {
  opacity: 0.85;
}

.music-netease-icon {
  font-size: 1rem;
}

.music-netease-arrow {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Abilities row */
.music-modal-abilities {
  display: flex;
  gap: 8px;
  padding: 0 36px 24px;
  flex-wrap: wrap;
}

.ability-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f5f5f7;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #515154;
}

.ability-icon {
  font-size: 0.9rem;
}

.ability-label {
  font-size: 0.82rem;
}

/* Section title */
.discog-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 36px;
  margin: 0 0 16px;
}

/* === Discography Grid === */
.discography-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 36px 36px;
}

.discog-card {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e8ed;
  text-decoration: none;
  color: inherit;
}

.discog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.discog-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.discog-departure {
  background-image: url('discog-departure.jpg');
}

.discog-walls {
  background-image: url('discog-walls.jpg');
}

.discog-goldenhour {
  background-image: url('discog-goldenhour.jpg');
}

.discog-mysoul {
  background-image: url('discog-mysoul.jpg');
}

.discog-2am {
  background-image: url('discog-2am.jpg');
}

.discog-goodnight {
  background-image: url('discog-goodnight.jpg');
}

.discog-info {
  padding: 12px 14px 14px;
}

.discog-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.discog-type {
  font-size: 0.65rem;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .music-modal-header {
    flex-direction: column;
    padding: 28px 20px 16px;
  }
  .music-modal-name {
    font-size: 1.4rem;
  }
  .music-modal-abilities {
    padding: 0 20px 20px;
  }
  .discog-section-title {
    padding: 0 20px;
  }
  .discography-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px 28px;
  }
}
