@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --yt-ink: #09090b;
  --yt-ink-soft: #3f3f46;
  --yt-paper: #fafafa;
  --yt-paper-2: #f4f4f5;
  --yt-pink: #ec4899;
  --yt-pink-deep: #db2777;
  --yt-blush: #fce7f3;
  --yt-radius: 28px;
  --yt-rail-w: 88px;
  --yt-shadow: 0 24px 60px rgba(9, 9, 11, 0.12);
}

@media (max-width: 1024px) {
  body.yt-home-v2 .pc {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  body.yt-home-v2 .phone {
    display: none !important;
  }
}

body.yt-home-v2 {
  margin: 0;
  background: var(--yt-paper);
  color: var(--yt-ink);
  font-family: "Source Sans 3", "PingFang TC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.yt-home-v2 .ind1,
body.yt-home-v2 .xj-m-app,
body.yt-home-v2 .xj-pc-home {
  background: transparent !important;
}

body.yt-home-v2 .pc .ind1-a > *:not(.yt-shell),
body.yt-home-v2 .phone .ind1-a > *:not(.yt-shell) {
  display: none !important;
}

.yt-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--yt-rail-w) 1fr;
  gap: 0;
}

.yt-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--yt-ink);
  color: #fff;
  z-index: 40;
}

.yt-rail-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(236, 72, 153, 0.5);
}

.yt-rail-mark {
  font-family: "Playfair Display", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.85;
}

.yt-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: auto;
}

.yt-rail-nav a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.yt-rail-nav a:hover,
.yt-rail-nav a.is-active {
  background: var(--yt-pink);
  color: #fff;
}

.yt-rail-nav a span {
  display: none;
}

.yt-main {
  padding: 24px 28px 48px;
  max-width: 1100px;
}

.yt-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.yt-brand-block h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.yt-brand-block h1 em {
  font-style: italic;
  color: var(--yt-pink);
}

.yt-brand-block p {
  margin: 10px 0 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--yt-ink-soft);
}

.yt-tg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yt-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.yt-tg:hover {
  background: var(--yt-pink-deep);
  transform: scale(1.05);
}

.yt-hero {
  position: relative;
  border-radius: var(--yt-radius);
  overflow: hidden;
  box-shadow: var(--yt-shadow);
  margin-bottom: 32px;
  background: var(--yt-ink);
}

.yt-hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.yt-hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 10;
}

.yt-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.yt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(9, 9, 11, 0.75) 0%, rgba(9, 9, 11, 0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  pointer-events: none;
}

.yt-hero-overlay h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  max-width: 14ch;
}

.yt-hero-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  max-width: 36ch;
  line-height: 1.55;
}

.yt-hero-dots {
  position: absolute;
  bottom: 18px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.yt-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-hero-dots button.is-active {
  background: var(--yt-pink);
  transform: scale(1.15);
}

.yt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.yt-btn-primary {
  background: var(--yt-pink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.yt-btn-primary:hover {
  background: var(--yt-pink-deep);
  transform: translateY(-2px);
}

.yt-btn-ghost {
  background: transparent;
  color: var(--yt-ink);
  border: 2px solid var(--yt-ink);
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.yt-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px 20px;
  border: 1px solid #e4e4e7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yt-card:hover {
  border-color: var(--yt-pink);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.12);
}

.yt-card h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yt-pink);
  font-weight: 700;
}

.yt-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--yt-ink-soft);
}

.yt-disclaimer {
  background: var(--yt-blush);
  border-left: 4px solid var(--yt-pink);
  padding: 16px 20px;
  border-radius: 0 16px 16px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--yt-ink-soft);
  margin-bottom: 28px;
}

.yt-footer {
  font-size: 0.8rem;
  color: #71717a;
  padding-top: 16px;
  border-top: 1px solid #e4e4e7;
}

@media (max-width: 1024px) {
  .yt-shell {
    grid-template-columns: 1fr;
    padding-bottom: 88px;
  }

  .yt-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(9, 9, 11, 0.15);
  }

  .yt-rail-mark,
  .yt-rail-logo {
    display: none;
  }

  .yt-rail-nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    margin: 0;
  }

  .yt-rail-nav a {
    width: auto;
    flex: 1;
    height: 52px;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .yt-rail-nav a span {
    display: block;
  }

  .yt-main {
    padding: 16px 16px 24px;
  }

  .yt-grid {
    grid-template-columns: 1fr;
  }

  .yt-hero-slide {
    aspect-ratio: 3 / 4;
  }

  .yt-hero-overlay {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yt-hero-track {
    transition: none;
  }
}
