:root {
  --primary-color: #DC143C;
  --text-main: #000033;
  --text-sub: #252525;
  --bg-color: Seashell;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.7);
  outline-offset: 2px;
}

hr {
  width: 100%;
  margin: 0 auto 1rem auto;
  border: none;
  border-top: 2px dashed rgba(158, 158, 158, 0.2);
}

#app {
  height: 100%;
  position: relative;
  overflow: visible;
}

.main-container {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 90%;
  max-width: 800px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-container.is-detail {
  top: 50px;
  transform: translate(-50%, 0);
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  transition: all .8s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-container.is-detail .hero-wrap {
  height: 0;
  opacity: 0;
  transform: translateY(-30px) scale(.95);
  filter: blur(20px);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-image {
  width: 100%;
  max-width: 100vw;
  height: 50vh;
  display: block;
  margin: 0 auto 30px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  filter: blur(0);
}

.main-container.is-detail .hero-image {
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  height: 0;
  margin-bottom: 0;
  pointer-events: none;
  filter: blur(20px);
}

.title {
  font-size: 2.5rem;
  color: var(--text-main);
  margin: 10px 0;
  transition: all 0.3s ease;
}

.main-container.is-detail .title {
  font-size: 1.9rem;
  margin: 5px 0;
}

.category-row {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-sub);
  cursor: pointer;
  gap: 12px;
  margin-bottom: 1rem;
}

.back-btn {
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
  white-space: nowrap;
  pointer-events: none;
  filter: blur(10px);
}

.main-container.is-detail .back-btn {
  max-width: 120px;
  opacity: 0.5;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0.6s;
  filter: blur(0);
}

.category-text {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.main-container.is-detail .category-text {
  transform: translateX(0);
}

.category-text.active {
  font-weight: bold;
  color: var(--text-main);
}

.category-text::after {
  content: "";
  position: absolute;
  left: 28%;
  bottom: -3px;
  width: 0;
  height: 4px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  filter: blur(3px);
}

.category-text.active::after {
  width: 50%;
  filter: blur(0);
}

.detail-content {
  margin-top: 0;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.6s ease-out;
  max-height: 0;
  overflow: hidden;
}

.main-container.is-detail .detail-content.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.1s;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.main-container.is-detail .detail-content.show::-webkit-scrollbar {
  display: none;
}

.detail-content p {
  margin-top: 0;
  text-align: left;
  font-size: 1.2rem;
  opacity: 0.8;
}

.detail-content p span {
  opacity: 0.3;
}

.detail-content a {
  transition: opacity 0.3s ease-in-out;
}

.detail-content a:hover {
  opacity: 0.6;
}

.detail-content img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(1, 1, 1, .1);
}

.bottom-footer {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: var(--text-sub);
  font-size: 0.8rem;
  transition: all 0.6s ease;
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.bottom-footer.hide {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

.fade-enter-active,
.fade-leave-active {
  transition: all 0.2s ease-in-out;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

@media (max-width: 480px) {
  .title {
    font-size: 2.3rem;
  }
  .main-container.is-detail .title {
    font-size: 1.8rem;
  }
  .detail-content {
    margin-top: 20px;
  }

  .detail-content p {
    font-size: 0.8rem;
  }
}
