/* ============================================
   AI Video Generation Service Page Styles
   ============================================ */

.ai-video-page {
  position: relative;
  background: var(--purple-900);
  color: var(--white);
  scroll-behavior: smooth;
  isolation: isolate;
  overflow-x: hidden;
  width: 100%;
}

/* Starfield ambiance */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: var(--purple-900);
}

.video-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(157, 78, 221, 0.25), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 40%, rgba(91, 192, 190, 0.12), transparent 60%),
    radial-gradient(ellipse 65% 50% at 10% 70%, rgba(58, 27, 107, 0.35), transparent 65%);
  opacity: 0.9;
}

.video-bg-stars {
  position: absolute;
  inset: 0;
}

.video-bg-stars .star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  animation: videoStarTwinkle 3.5s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

.video-bg-stars .star.star-gold {
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(232, 200, 114, 0.9);
}

.video-bg-stars .star.star-cyan {
  background: var(--accent-teal);
  box-shadow: 0 0 6px rgba(91, 192, 190, 0.9);
}

.video-bg-stars .star.star-purple {
  background: var(--purple-200);
  box-shadow: 0 0 6px rgba(194, 161, 240, 0.9);
}

@keyframes videoStarTwinkle {
  0% {
    opacity: 0.15;
    transform: scale(0.75);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.2);
  }

  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-bg-stars .star {
    animation: none;
    opacity: 0.55;
  }
}

.ai-video-page>header.site-header {
  z-index: 1000;
}

.ai-video-page>main,
.ai-video-page>footer {
  position: relative;
  z-index: 1;
}

/* ============================================
   1. Hero Section (滿版螢幕高度 100vh / 100dvh)
   ============================================ */
.video-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 1.5rem) var(--container-padding) 2.5rem;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background: #0d061a;
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.video-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(13, 6, 26, 0.6) 0%, rgba(13, 6, 26, 0.78) 55%, rgba(13, 6, 26, 0.96) 100%),
    radial-gradient(circle at 50% 30%, rgba(157, 78, 221, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.video-hero .container {
  position: relative;
  z-index: 3;
  max-width: 54rem;
  margin: 0 auto;
}

.video-hero .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.video-hero .section-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.video-hero .section-title .highlight {
  background: linear-gradient(135deg, #e0aaff 0%, #c77dff 50%, #7b2cbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.video-hero .section-subtitle {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--purple-200);
  font-size: 1.15rem;
  line-height: 1.85;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ============================================
   2. 影片風格 (手機框卡片，真實影片播放)
   ============================================ */
.video-styles-section {
  padding: 5rem 0;
  position: relative;
}

.phone-styles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem 2rem;
  margin-top: 3.5rem;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.phone-style-card {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 290px;
  transition: transform var(--transition-base);
}

.phone-style-card:hover {
  transform: translateY(-8px);
}

/* Smartphone Frame Mockup */
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: #0d061a;
  border: 9px solid #1f1435;
  border-radius: 42px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(157, 78, 221, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.phone-style-card:hover .phone-frame {
  border-color: #2f1d52;
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(199, 125, 255, 0.45),
    0 0 35px rgba(157, 78, 221, 0.35);
}

/* Phone Top Dynamic Island / Notch */
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* Phone Screen (影片放置空間) */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #07030e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}

.phone-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* Play/Pause Overlay */
.phone-play-btn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: opacity var(--transition-base), background var(--transition-base);
  pointer-events: none;
}

/* 當影片正在播放時，隱藏中央播放按鈕，滑鼠 Hover 時才微透顯示 */
.phone-style-card.is-playing .phone-play-btn-overlay {
  opacity: 0;
  background: transparent;
}

.phone-style-card.is-playing:hover .phone-play-btn-overlay {
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.25);
}

.phone-play-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-base);
}

.phone-play-btn svg {
  margin-left: 2px;
}

.phone-style-card:hover .phone-play-btn {
  background: var(--purple-500);
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.75);
}

/* 聲音切換按鈕 (右上角) */
.phone-sound-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 6, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.phone-sound-btn:hover {
  background: var(--purple-500);
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.6);
}

/* Phone Bottom Home Bar */
.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  z-index: 20;
  pointer-events: none;
}

/* Style Title (純風格標題) */
.phone-style-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.35;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.phone-style-card:hover .phone-style-title {
  color: var(--purple-300);
}

/* ============================================
   3. 影片方案 (單個短片 2500起 / 劇集式成套更優惠+分批次收款)
   ============================================ */
.video-plans-section {
  padding: 5rem 0;
  position: relative;
}

.plans-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-base);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.plan-card.plan-featured {
  border-color: rgba(199, 125, 255, 0.45);
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 15px 35px rgba(123, 44, 191, 0.2);
}

.plan-badge-top {
  position: absolute;
  top: -13px;
  right: 2rem;
  padding: 0.4rem 1.1rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c77dff, #7b2cbf);
  color: #fff;
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

.plan-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.plan-type-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--purple-300);
  letter-spacing: 0.1em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.plan-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.plan-tagline {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Pricing Display */
.plan-price-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.price-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.price-unit {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.price-hint {
  font-size: 0.86rem;
  color: var(--purple-200);
  line-height: 1.5;
}

.payment-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(91, 192, 190, 0.12);
  border: 1px solid rgba(91, 192, 190, 0.3);
  color: #5bc0be;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.plan-features-list li .feat-icon {
  color: #5bc0be;
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.2;
}

.plan-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
}

.plan-btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #fff;
  box-shadow: 0 8px 20px rgba(123, 44, 191, 0.35);
}

.plan-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(123, 44, 191, 0.5);
  color: #fff;
}

.plan-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.plan-btn-outline:hover {
  border-color: var(--purple-300);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   4. 服務流程 (時間軸點節點顯示內容)
   ============================================ */
.video-workflow-section {
  padding: 5rem 0;
  position: relative;
}

/* Timeline Interactive Controls */
.timeline-stepper-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 54rem;
  margin: 3.5rem auto 2.5rem;
  position: relative;
}

.timeline-step-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  touch-action: manipulation;
}

.timeline-step-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(199, 125, 255, 0.35);
  color: var(--white);
  transform: translateY(-2px);
}

.timeline-step-btn.active {
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.25) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: var(--purple-400);
  color: var(--white);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.step-node-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  transition: all var(--transition-base);
}

.timeline-step-btn.active .step-node-bubble {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  border-color: #fff;
  box-shadow: 0 0 14px rgba(199, 125, 255, 0.6);
}

.step-node-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-node-sub {
  font-size: 0.76rem;
  color: var(--purple-200);
  opacity: 0.8;
}

/* Timeline Detail Display Box */
.timeline-content-wrapper {
  max-width: 54rem;
  margin: 0 auto;
}

.timeline-panel {
  display: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(199, 125, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: timelineFadeIn 0.35s ease-out forwards;
}

.timeline-panel.active {
  display: block;
}

@keyframes timelineFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.panel-num-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  background: var(--purple-600);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.panel-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.panel-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Sub-pipeline inside Step 03 (製作執行) */
.sub-pipeline-box {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sub-step-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sub-step-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sub-step-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  transition: all var(--transition-base);
}

.sub-step-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(199, 125, 255, 0.35);
  transform: translateY(-2px);
}

.sub-step-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-300);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.sub-step-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.sub-step-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* Approval Gate Banner */
.approval-gate-banner {
  background: linear-gradient(90deg, rgba(232, 200, 114, 0.16), rgba(157, 78, 221, 0.22));
  border: 1px solid rgba(232, 200, 114, 0.4);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.gate-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #1a0a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.gate-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--white);
}

.gate-text strong {
  color: var(--accent-gold);
}

/* Timeline Navigation Bottom Controls */
.timeline-bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.timeline-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--purple-300);
}

.timeline-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================
   5. FAQ Section (獨立修復：不卡死、平滑展開)
   ============================================ */
.video-faq-section {
  padding: 5rem 0;
  position: relative;
}

.video-faq-container {
  max-width: 50rem;
  margin: 3.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vfaq-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.vfaq-item.active {
  border-color: rgba(199, 125, 255, 0.45);
  background: rgba(255, 255, 255, 0.055);
}

.vfaq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--transition-base);
}

.vfaq-question:hover {
  color: var(--accent-gold);
}

.vfaq-icon-arrow {
  font-size: 0.85rem;
  color: var(--purple-300);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.vfaq-item.active .vfaq-icon-arrow {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.vfaq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.vfaq-item.active .vfaq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 1.5rem 1.35rem;
}

.vfaq-answer p {
  margin: 0;
}

.vfaq-answer strong {
  color: #fff;
}

/* ============================================
   Responsive Adjustments (手機版與平板 RWD 全面優化)
   ============================================ */
@media (max-width: 1100px) {
  .plans-grid-2 {
    grid-template-columns: 1fr;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }

  .sub-step-row-3 {
    grid-template-columns: 1fr;
  }

  .sub-step-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 1. Hero Section */
  .video-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 1.25rem) var(--container-padding) 2rem;
    box-sizing: border-box;
  }

  .video-hero .section-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .video-hero .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 0.75rem;
  }

  .hero-cta-group a {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  /* 2. 影片風格區塊 (Phone Styles Grid) */
  .video-styles-section {
    padding: 3.5rem 0;
  }

  .phone-styles-grid {
    gap: 2.75rem 1rem;
    margin-top: 2.5rem;
  }

  .phone-style-card {
    max-width: 270px;
    width: 100%;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 34px;
  }

  .phone-style-title {
    font-size: 1.15rem;
  }

  /* 3. 影片方案區塊 (服務方案 RWD 跑版修復) */
  .video-plans-section {
    padding: 3.5rem 0;
  }

  .plans-grid-2 {
    margin-top: 2.5rem;
    gap: 2.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .plan-card {
    padding: 2.25rem 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .plan-name {
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
  }

  .plan-tagline {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .plan-price-box {
    padding: 1.1rem 1rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }

  .price-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .price-currency {
    font-size: 1rem;
  }

  .price-amount {
    font-size: 1.85rem;
    word-break: break-all;
    line-height: 1.1;
  }

  .price-unit {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
  }

  .price-hint {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .payment-method-badge {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.45rem 0.65rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.65rem;
  }

  .plan-features-list {
    margin-bottom: 1.5rem;
    gap: 0.75rem;
  }

  .plan-features-list li {
    font-size: 0.88rem;
    line-height: 1.55;
    gap: 0.6rem;
  }

  .plan-btn {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  /* 4. 服務流程區塊 (Timeline Process) */
  .video-workflow-section {
    padding: 3.5rem 0;
  }

  .timeline-stepper-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2.25rem auto 1.75rem;
  }

  .timeline-step-btn {
    padding: 1rem 0.6rem;
    gap: 0.4rem;
  }

  .step-node-bubble {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .step-node-label {
    font-size: 0.92rem;
  }

  .step-node-sub {
    font-size: 0.72rem;
  }

  .timeline-panel {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
  }

  .panel-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .panel-num-pill {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
  }

  .panel-title {
    font-size: 1.35rem;
  }

  .panel-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .sub-step-row-3,
  .sub-step-row-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .sub-step-item {
    padding: 1.1rem 1rem;
  }

  .sub-step-item h4 {
    font-size: 1.02rem;
  }

  .sub-step-item p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .approval-gate-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1rem;
    gap: 0.75rem;
  }

  .gate-badge {
    align-self: flex-start;
  }

  .gate-content p {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .timeline-bottom-controls {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .timeline-ctrl-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* 5. FAQ 區塊 */
  .video-faq-section {
    padding: 3.5rem 0;
  }

  .video-faq-container {
    margin-top: 2rem;
  }

  .vfaq-question {
    padding: 1.15rem 1.1rem;
    font-size: 0.98rem;
  }

  .vfaq-answer {
    padding: 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .vfaq-item.active .vfaq-answer {
    padding: 0 1.1rem 1.15rem;
  }

  /* 6. CTA 區塊 */
  .video-cta-section {
    padding: 3.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 2rem 1rem 1.5rem;
  }

  .plan-badge-top {
    right: 1rem;
    top: -11px;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }

  .plan-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .plan-price-box {
    padding: 0.85rem 0.85rem;
  }

  .price-amount {
    font-size: 1.65rem;
  }

  .timeline-stepper-nav {
    gap: 0.5rem;
  }

  .timeline-step-btn {
    padding: 0.75rem 0.35rem;
  }

  .step-node-bubble {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .step-node-label {
    font-size: 0.82rem;
  }

  .step-node-sub {
    font-size: 0.68rem;
  }

  .timeline-panel {
    padding: 1.35rem 0.9rem;
  }
}