/* 日韩电影落地页 - 公共补充样式（01/02 两套共用） */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #c7d2fe;
  color: #312e81;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 导航栏滚动状态 */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border-bottom-color: #e2e8f0;
}

/* 移动端菜单 */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open {
  max-height: 480px;
}

/* 入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Hero 背景光斑 */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

/* 片名跑马灯 */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 电影卡 */
.movie-poster-img {
  transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster-img {
  transform: scale(1.06);
}

/* FAQ 手风琴 */
.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-body {
  max-height: 320px;
}
.faq-item .faq-chevron {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-item.open .faq-question {
  color: #4f46e5;
}

/* 手机模型 */
.phone-frame {
  width: 280px;
  border-radius: 2.75rem;
  border: 10px solid #0f172a;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  position: relative;
  background: #0f172a;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 20;
}
.phone-screen {
  border-radius: 2.1rem;
  overflow: hidden;
}

/* 悬浮小卡 */
.float-card {
  animation: floaty 5s ease-in-out infinite;
}
.float-delay {
  animation-delay: 2.2s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 返回顶部 */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* line-clamp 兜底 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
