/* =========================================
   1. 字體與全站共用設定
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&display=swap');

/* 網站背景設定 - 現代版 */
body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    margin: 0;
    padding: 0;
    color: #ddd;
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #111;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
}



/* =========================================
   2. 現代化標題 (風格 B)
   ========================================= */
.modern-title {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #f0f0f0;
    /* 純白偏灰 */
    margin: 40px 0;
    margin-top: 100px;
    /* 避開頂部選單遮擋，若還遮住可調大此數值 */
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 左右兩邊加上金色裝飾線 */
.modern-title::before,
.modern-title::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: #d4af37;
    /* 金色線條 */
    vertical-align: middle;
    margin: 0 15px;
    position: relative;
    top: -2px;
}

/* =========================================
   3. 下載專區主頁 (Download Main Page)
   ========================================= */
.download-section {
    max-width: 800px;
    margin: 0 auto;
    color: #ddd;
}

/* 圖片置中 (如果還有用圖片標題的話) */
.panel__title {
    text-align: center;
    margin-bottom: 30px;
}

.panel__title img {
    max-width: 100%;
    height: auto;
}

/* 上方教學導航按鈕 */
.guide-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-guide {
    cursor: pointer;
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    border: 1px solid #666;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-guide:hover {
    background: linear-gradient(to bottom, #5a5a5a, #3a3a3a);
    border-color: #d4af37;
    /* 金色邊框 */
    color: #d4af37;
}

/* 常見問題區塊 (FAQ Box) */
.faq-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #d4af37;
    /* 金色左邊條 */
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: left;
}

.faq-highlight {
    color: #ffcc00;
    /* 亮黃色強調 */
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    margin-bottom: 8px;
    color: #bbb;
}

.faq-list a {
    color: #4da6ff;
    /* 連結顏色：亮青色 */
    text-decoration: none;
    margin-left: 5px;
}

.faq-list a:hover {
    text-decoration: underline;
    color: #fff;
}

/* 下載卡片區 (Download Cards) */
.download-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1a1a1a 0%, #222 100%);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.download-card:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.file-info {
    text-align: left;
}

.file-name {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #f0f0f0;
}

.file-size {
    font-size: 14px;
    color: #888;
}

/* 下載按鈕 (Golden Button) */
.btn-download {
    background: #d4af37;
    color: #000;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-download:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
}

.btn-download small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}

/* 底部聲明連結 */
.footer-notice {
    margin-top: 30px;
    color: #888;
    font-size: 14px;
}

.footer-notice a {
    color: #d4af37;
}


/* =========================================
   4. 教學頁面專用樣式 (Tutorial Pages) - 2.0 精修版
   ========================================= */

/* 1. 教學總容器：限制寬度讓閱讀更舒服 */
.tutorial-container {
    max-width: 800px;
    /*稍微縮窄一點，讓卡片看起來更精緻*/
    margin: 0 auto;
    padding: 20px;
    color: #ddd;
}

/* 2. 返回按鈕美化 */
.nav-actions {
    text-align: left;
    /* 靠左比較符合操作習慣 */
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    color: #ccc;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* 3. 單一步驟卡片 (大改版重點) */
.step-card {
    background: #151515;
    /* 比背景稍微亮一點的深灰 */
    border: 1px solid #333;
    /* 低調的灰邊框 */
    border-radius: 12px;
    padding: 40px 30px;
    /* 增加內部留白 */
    margin-bottom: 40px;
    text-align: center;
    /* 讓內容全部置中 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* 增加立體感陰影 */
    position: relative;
    overflow: hidden;
}

/* 金色頂部線條裝飾 */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.step-card:hover {
    transform: translateY(-5px);
    /* 滑鼠移過去稍微浮起來 */
    border-color: #555;
    transition: transform 0.3s;
}

/* 4. 步驟標籤 (Step Badge) */
.step-badge {
    display: inline-block;
    background: #d4af37;
    color: #000;
    font-weight: 900;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 5. 步驟標題 */
.step-title {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 6. 步驟說明文字 */
.step-desc {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 7. 圖片美化 (關鍵) */
.step-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
    /* 圖片加個框 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    display: block;
    margin: 0 auto;
    /* 圖片置中 */
}

/* 8. 錯誤排除連結按鈕化 */
.error-fix-btn {
    display: inline-block;
    background: #3a1c1c;
    /* 暗紅色背景表示警告 */
    color: #ff6b6b;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    border: 1px solid #ff6b6b;
    font-weight: bold;
    transition: all 0.2s;
}

.error-fix-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

/* 專屬 Google 配額提示樣式 */
.quota-tips {
    margin-top: 8px;
    /* 與檔案大小拉開一點距離 */
}

.quota-tips a {
    font-size: 13px;
    color: #ff6b6b;
    /* 使用亮紅色或顯眼的橘色 */
    text-decoration: none;
    border: 1px solid rgba(255, 107, 107, 0.3);
    /* 微微的框線 */
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: all 0.3s;
}

.quota-tips a:hover {
    color: #fff;
    background: #ff6b6b;
    /* 滑鼠移上去變實心紅 */
    border-color: #ff6b6b;
}

/* 如果在手機版，確保提示文字不會跑版 */
@media (max-width: 600px) {
    .quota-tips {
        margin-bottom: 10px;
        /* 手機版按鈕在下方，所以下面要留空隙 */
    }
}

/* =========================================
   現代化導航列 (Modern Navbar)
   ========================================= */

/* 1. 導航列容器：玻璃擬態 + 金色底線 */
.modern-navbar {
    background: rgba(0, 0, 0, 0.85);
    /* 深黑半透明 */
    backdrop-filter: blur(12px);
    /* 磨砂玻璃模糊效果 */
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    /* 淡淡的金線 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    padding: 10px 0;
    /* 增加一點呼吸空間 */
    transition: all 0.3s ease;
}

/* 2. LOGO 設定 */
.logo-navbar {
    max-height: 50px;
    width: auto;
    /* 改成金色光暈，原本的藍色陰影會不搭 */
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s;
}

.logo-navbar:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* 3. 選單連結 (一般文字) */
.navbar-nav .nav-item {
    margin: 0 5px;
    /* 每個選項之間的間距 */
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    /* 強制覆蓋 Bootstrap 顏色為淺灰 */
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px !important;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 1px;
}

/* 滑鼠移過去的效果：變金字 + 底部線條展開 */
.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    /* 線條展開 */
}

/* 4. 特殊按鈕：「遊戲下載」 (Call to Action) */
.btn-gold-nav {
    border: 1px solid #d4af37;
    border-radius: 50px;
    color: #d4af37 !important;
    padding: 8px 25px !important;
    margin-left: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* 下載按鈕 hover 效果：變成實心金色 */
.btn-gold-nav:hover {
    background: #920101;
    color: #000 !important;
    /* 文字變黑 */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* 移除下載按鈕底下的線條動畫 (因為它已經有邊框了) */
.btn-gold-nav::after {
    display: none;
}

/* 5. 手機版漢堡選單按鈕 */
.custom-toggler {
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 5px 10px;
    border-radius: 5px;
}

.custom-toggler i {
    font-size: 24px;
}

/* 6. 手機版適配調整 */
@media (max-width: 768px) {
    .logo-navbar {
        max-height: 40px;
        /* 手機版 LOGO 縮小 */
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        /* 手機版下拉選單背景更黑一點 */
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        border: 1px solid #333;
    }

    .navbar-nav .nav-item {
        margin: 10px 0;
        /* 手機版選項垂直拉開 */
        text-align: center;
    }

    .btn-gold-nav {
        margin-left: 0;
        display: inline-block;
        /* 讓按鈕在手機版置中 */
    }
}

/* =========================================
   5. 手機版適配 (RWD Media Queries)
   ========================================= */
@media (max-width: 600px) {

    /* 下載卡片變直排 */
    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .file-info {
        text-align: center;
    }

    /* 按鈕變滿版 */
    .btn-download,
    .btn-guide,
    .btn-back {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    .guide-buttons {
        flex-direction: column;
    }

    /* 標題字體縮小 */
    .modern-title {
        font-size: 32px;
        margin-top: 80px;
        /* 手機版選單可能比較矮，可微調 */
    }

    /* 隱藏標題旁的金色線條 (手機版太擠) */
    .modern-title::before,
    .modern-title::after {
        display: none;
    }

    /* 教學步驟內距縮小 */
    .step-card {
        padding: 15px;
    }
}

/* 導航列高亮效果 */
.navbar-nav .nav-link.active {
    color: #ffd700 !important; /* 金色亮起 */
    font-weight: bold;         /* 加粗 */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* 微微發光 */
}

/* 針對遊戲下載按鈕的高亮 (如果是按鈕樣式) */
.btn-gold-nav.active {
    background: #920101 !important;/* 背景變白 */
    color: #000 !important;      /*文字變黑 */
    border-color: #fff !important;
}


/* === 新增：手機右下角複製連結浮動按鈕樣式 === */
/* =========================
   手機右下角：複製連結按鈕
   ========================= */
.float-copy-btn{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 100;

  display: none; /* 預設不顯示，交給 media query */
  align-items: center;
  gap: 1px;

  padding: 12px 14px;
  border-radius: 14px;

  border: 1px solid rgba(212, 175, 55, .45);     /* 金 */
  background: rgba(10, 10, 12, .78);             /* 黑透明 */
  backdrop-filter: blur(10px);

  color: #f0f0f0;
  font-weight: 700;
  letter-spacing: .5px;

  box-shadow:
    0 10px 24px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04) inset;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.float-copy-btn i{
  font-size: 16px;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212,175,55,.25);
}

.float-copy-btn .txt{
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* 按下回饋 */
.float-copy-btn:active{
  transform: translateY(1px) scale(.99);
}

/* hover（桌機若顯示時也漂亮） */
.float-copy-btn:hover{
  border-color: rgba(212, 175, 55, .75);
  background: rgba(20, 20, 24, .86);
  box-shadow:
    0 14px 30px rgba(0,0,0,.60),
    0 0 18px rgba(212,175,55,.12);
}

/* ✅ 成功狀態：同一套樣式，只做輕微加亮，不跳色 */
.float-copy-btn.is-copied{
  border-color: rgba(120, 255, 180, .55);
  box-shadow:
    0 14px 30px rgba(0,0,0,.60),
    0 0 18px rgba(120,255,180,.12);
}

.float-copy-btn.is-copied i{
  color: #7dffb3;
  text-shadow: 0 0 12px rgba(125,255,179,.22);
}

/* ✅ 只在手機/平板顯示（你可改 1024/768） */
@media (max-width: 991px){
  .float-copy-btn{ display: inline-flex; }
}
