@charset "utf-8";

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* 1. 滿版輪播容器 */
    .banner-slider {
      position: relative;
      width: 100vw;
      height: 100vh;
      height: 100dvh; 
      overflow: hidden;
      background-color: #000;
      
      /* 設定滑鼠指標為抓取樣式，提示可以拖曳 */
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
    }

    .banner-slider:active {
      cursor: grabbing;
    }

    /* 2. 單張 Slide 設定 */
    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
      
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: #fff;
    }

    /* 遮罩效果 */
    .slide::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.35); 
    }

    /* 文字內容 */
    .slide-content {
      position: relative;
      z-index: 2;
      padding: 0 20px;
      max-width: 800px;
      pointer-events: none; /* 防止拖曳時選到文字 */
    }

    .slide-content h1 {
      font-size: 3rem;
      margin-bottom: 15px;
      text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }

    .slide-content p {
      font-size: 1.25rem;
    }

    /* 顯示當前這張 Slide */
    .slide.active {
      opacity: 1;
    }

    /* 3. 下方指示點 (Dots) */
    .dots-container {
      position: absolute;
      bottom: 25px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      gap: 12px;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dot.active {
      background: #fff;
      width: 32px;
      border-radius: 10px;
    }
    .gy-inner {
      position: relative;
      width: 100%;             /* 小於 1200px 時跟著螢幕變寬變窄 */
      max-width: 1200px;       /* 超過 1200px 時卡住不變大 */
      height: 100%;
      margin: 0 auto;          /* 關鍵：超過 1200px 時自動左右置中 */
      z-index: 3;
    }
    .gy-title {
      position: absolute;
      bottom: 20%;
      left: 0px;                 /* 靠齊 .gy-inner 的左側 */
      padding: 0 20px;
      display: grid;
      gap: 10px;
      z-index: 2;              /* 順便保持高於 .gy-overlay */
      pointer-events: none;    /* 防止文字干擾手勢滑動 */
    }
    .headline {
        margin: 0;
        font-size: clamp(28px, 7vw, 54px);
        line-height: 1;
    }
    .text {
        letter-spacing: 0.05em;
        color: #fff;
        transform: translateY(10px);
        animation: textFadeUp 0.6s ease forwards;
        animation-delay: 0.6s;
        text-shadow: 3px 3px 3px rgba(230, 0, 18, 0.8);
    }

    .text-en {
        font-size: 16px;
        color: #fff;
        letter-spacing: 0.05em;
        line-height: 1.6;
    }
      .gy-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 0%, rgb(123 58 58 / 0%) 75%, rgb(231 13 30) 100%);
  }

    /* 4. RWD 手機版調整 */
    @media (max-width: 768px) {
      .slide-content h1 { font-size: 1.8rem; }
      .slide-content p { font-size: 0.95rem; }
      .dots-container { bottom: 15px; }
    }



