@charset "UTF-8";

/* =========================================
   1. 現代化輪播圖 (Modern Slider)
   ========================================= */
.modern-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px auto;
    position: relative;
    border: 1px solid rgba(251, 183, 80, 0.3);
    /* 金色淡邊框 */
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: #000;
}

/* 控制輪播高度比例 (40% 代表寬100:高40，適合寬螢幕圖片) */
.slider-wrapper {
    position: relative;
    width: 100%;
    padding-top: 40%;
}

.slides {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}



/* 圖片切換效果 (Fade In/Out) */
.slides li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slides li.active {
    opacity: 1;
    z-index: 2;
}

.slides li a,
.slides li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 填滿不變形 */
}

/* 左右按鈕 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-gold);
    color: #000;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* 下方指示點 */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-gold);
    box-shadow: 0 0 5px var(--primary-gold);
}


/* =========================================
   2. 首頁佈局 (Layout) - 左右分欄
   ========================================= */
.home-layout {
    display: flex;
    gap: 25px;
    /* 左右間距 */
    align-items: flex-start;
    /* 確保頂部對齊 */
}

/* 左側欄容器 */
.home-sidebar {
    width: 280px;
    flex-shrink: 0;
    /* 禁止縮小 */
}

/* 右側內容容器 */
.home-content {
    flex-grow: 1;
    /* 佔滿剩餘空間 */
    background: var(--bg-panel);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}


/* =========================================
   3. 仿圖片風格側邊欄 (Visual Status Box)
   ========================================= */
.status-box-visual {
    background: #1a1510;
    /* 深褐色底 */
    border: 2px solid #5e4b35;
    /* 邊框 */
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.box-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #5e4b35;
    padding: 10px 0;
    background: linear-gradient(to bottom, #2b2218, #1a1510);
    border-radius: 5px 5px 0 0;
}

.box-header h3 {
    color: #ffd700;
    /* 金黃色 */
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    margin: 0;
    letter-spacing: 2px;
}

.box-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #251d14;
    border: 1px solid #3e3020;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.status-row .label {
    color: #ccc;
    font-size: 16px;
}

.status-row .value {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    font-family: "Arial", sans-serif;
}

/* 轉生保留 - 特別強調 */
.status-row.highlight {
    border-color: #d7423c;
    background: rgba(215, 66, 60, 0.1);
}

.status-row.highlight .label {
    color: #fbb750;
}

/* 側邊欄下載按鈕 */
.download-btn-side {
    display: block;
    margin-top: 20px;
    background: var(--accent-red);
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    transition: 0.3s;
}

.download-btn-side:hover {
    background: #ff5252;
    transform: translateY(-2px);
}


/* =========================================
   4. 公告區塊 (News Section)
   ========================================= */
.news-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.5rem;
    color: #fff;
    border-left: 5px solid var(--primary-gold);
    padding-left: 15px;
}

.section-header a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.news-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 15px;
}

.news-list .tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
    color: #fff;
}

.tag.hot {
    background: #d7423c;
}

.tag.event {
    background: #1e88e5;
}

.tag.sys {
    background: #43a047;
}

.news-list .date {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.9rem;
}


/* =========================================
   5. 特色區塊 (Feature Grid)
   ========================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #fff;
    font-size: 1.1rem;
}


/* =========================================
   6. 首頁 RWD (Home Mobile) - 手機版優化
   ========================================= */
@media (max-width: 768px) {

    /* 1. 輪播圖比例調整 (避免太扁) */
    .slider-wrapper {
        padding-top: 56.25%;
    }

    /* 2. 佈局改為單欄 (垂直排列) */
    .home-layout {
        display: flex;
        flex-direction: column;
    }

    /* 3. 側邊欄 (基本設置) 滿寬 */
    .home-sidebar {
        order: 2;
        width: 100%;
        margin-bottom: 30px;
    }

    /* 4. ★ 關鍵修正：內容區內距縮小 ★ */
    .home-content {
        order: 1;
        width: 100%;
        padding: 15px;
        margin-bottom: 20px;
    }

    /* 5. 公告列表優化 */
    .section-header {
        margin-bottom: 15px;
    }

    .section-header h3 {
        font-size: 1.3rem;
        /* 字體稍微縮小 */
        padding-left: 10px;
        /* 左邊金線距離縮小 */
    }

    /* 讓列表項目左右幾乎貼齊，不浪費空間 */
    .news-list li {
        padding: 12px 0;
        /* 上下12px，左右0 */
        flex-direction: column;
        /* 日期換行顯示 */
        align-items: flex-start;
    }

    .news-list .date {
        margin-top: 5px;
        font-size: 0.85rem;
        color: #888;
    }

    /* 6. 8宮格圖示選單優化 */
    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 兩欄排列 */
        gap: 10px;
        /* 間距縮小 */
        margin-top: 20px;
    }

    .info-item {
        padding: 10px;
        /* 格子內距也縮小 */
    }


    .info-item h4 {
        font-size: 14px;
    }
}

/* =========================================
   8宮格遊戲資訊選單 (Game Info Grid)
   ========================================= */
.game-info-grid {
    display: grid;
    /* 電腦版：一行 4 個，比例平均分配 */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* 格子之間的距離 */
    margin-top: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* 如果想要像圖片那樣有微微的底框，可以加下面這行，不想則拿掉 */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
}

/* 滑鼠移過去的特效 */
.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* 微亮背景 */
    transform: translateY(-5px);
    /* 向上浮起 */
}

.info-item:hover .icon-wrap img {
    transform: scale(1.1) rotate(5deg);
    /* 圖片放大並微轉 */
    filter: drop-shadow(0 0 8px rgba(251, 183, 80, 0.6));
    /* 金色光暈 */
}

.icon-wrap {
    width: 95px;
    height: 95px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrap img {
    object-fit: contain;
    /* 保持圖片比例 */
    transition: transform 0.3s ease;
}

.info-item h4 {
    color: #fbb750;
    /* 橘金色文字，配合你的風格 */
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px #000;
}

/* =========================================
   手機版 RWD 調整
   ========================================= */
@media (max-width: 768px) {
    .game-info-grid {
        /* 手機版：改成一行 2 個 */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .icon-wrap {
        width: 60px;
        /* 手機版圖示縮小 */
        height: 60px;
    }

    .info-item h4 {
        font-size: 14px;
    }
}




/* =========================================
   左側社群按鈕 (Social Buttons) - 填補高度用
   ========================================= */
.social-buttons {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    gap: 6px;
    /* 按鈕之間的距離 */
    margin-top: 6px;
    /* 距離上方下載按鈕的距離 */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, #2b2218, #1a1510);
    /* 深色黑金底 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.social-btn i {
    font-size: 18px;
}

/* 各別平台的顏色微調 (滑鼠移過去變色) */
.social-btn.line:hover {
    background: #00c300;
    /* Line 綠 */
    border-color: #00c300;
}

.social-btn.discord:hover {
    background: #5865F2;
    /* Discord 藍紫 */
    border-color: #5865F2;
}

.social-btn.fb:hover {
    background: #1877F2;
    /* FB 藍 */
    border-color: #1877F2;
}

/* --- 2. Chat / 聊天專區 (亮藍色風格) --- */
.social-btn.chat:hover {
    background: #0099ff;
    /* 聊天常用的亮藍色 */
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
    /* 藍色光暈 */
    border-color: #0099ff;
}

/* =========================================
   公告彈跳視窗 (News Modal)
   ========================================= */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* 深色背景遮罩 */
    backdrop-filter: blur(5px);
    /* 背景模糊特效 */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 預設隱藏 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 顯示狀態 */
.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 彈窗本體 */
.news-modal-box {
    background: #1a1510;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border: 1px solid var(--primary-gold);
    /* 金色邊框 */
    box-shadow: 0 0 20px rgba(251, 183, 80, 0.2);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;

    /* 進場動畫 */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.news-modal-overlay.active .news-modal-box {
    transform: translateY(0);
}

/* 關閉按鈕 (X) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-red);
}

/* 彈窗標題區 */
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;

    display: flex;
    flex-wrap: wrap;
    /* 允許換行 */
    justify-content: space-between;
    /* 讓第二行的內容「左右撐開」 */
    align-items: center;
    /* 垂直對齊 */
}

.modal-header h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    /* 下方留點空隙 */

    /* ★ 關鍵修改：標題強制佔滿 100% 寬度，這樣日期跟按鈕就會被擠到下一行 */
    width: 100%;
}

.modal-date {
    color: #888;
    font-size: 0.9rem;
    font-family: monospace;
}

/* 複製連結按鈕設定 */
.copy-btn {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;

    /* 這裡不需要特別寫 float，因為父層的 justify-content: space-between 會自動把它推到最右邊 */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* 圖示跟文字的距離 */
}

.copy-btn:hover {
    border-color: #fbb750;
    color: #fbb750;
    background: rgba(251, 183, 80, 0.1);
}

/* 彈窗內容區 (可捲動) */
.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    /* 內容太長時出現卷軸 */
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
}

/* 內容區圖片自適應 */
.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* 針對卷軸的美化 (Webkit) */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #111;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}


/* 新聞列：左右兩欄 */
.news-list li a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* 左邊要能被壓縮（關鍵：min-width:0） */
.news-left{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1 1 auto;
  min-width:0;
}

/* 標題做省略號 */
.news-title{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 日期不要被壓縮/不要換行 */
.news-date{
  flex:0 0 auto;
  white-space:nowrap;
  opacity:.75;
  font-size:12px; /* 手機可小一點 */
}

/* 標籤也不要換行 */
.news-left .tag{
  flex:0 0 auto;
  white-space:nowrap;
}
