/* =================================================================
   👑 萬物皆可毛玻璃 · 高透流光桃粉姬專用美學樣式表 (文字整齊優化版)
   ================================================================= */

body { 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; 
    background-color: #0f121d; 
    color: #ffffff; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 背景圖片完美復活：100% 飽和度完全不模糊、不遮擋 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://ycyairport.top/media/bg.jpg');  
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    z-index: -2; 
    pointer-events: none;
    opacity: 0.9; 
}

/* 頂部高級流光標題 */
.header { 
    text-align: center; 
    font-size: 15px; 
    font-weight: 700; 
    padding: 14px 0 10px 0;
    margin: 0;
    color: #ffffff; 
    letter-spacing: 1.5px;
    background: rgba(15, 18, 29, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 74, 131, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* 主畫面雙欄佈局容器 */
.main-wrapper {
    display: flex;
    margin-top: 45px; 
    min-height: calc(100vh - 45px);
}

/* 左側邊欄 */
.district-container { 
    width: 80px; 
    background: rgba(255, 255, 255, 0.06); 
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column; 
    gap: 0; 
    position: fixed;
    top: 45px;
    left: 0;
    bottom: 0;
    z-index: 90;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.district-btn { 
    background: transparent; 
    color: rgba(255, 255, 255, 0.7); 
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 16px 0; 
    font-size: 13px; 
    font-weight: 600;
    cursor: pointer; 
    text-align: center; 
    width: 100%;
    transition: all 0.2s ease;
}

.district-btn.active { 
    background: linear-gradient(90deg, rgba(255, 74, 131, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    color: #ff4a83 !important; 
    font-weight: 700;
    border-left: 3px solid #ff4a83; 
}

/* 右側內容名冊展示區域 */
.list-container { 
    flex: 1;
    margin-left: 80px; 
    padding: 14px;
    background: transparent; 
}

/* =================【卡片與動態流式排版優化】================= */

.card { 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 14px; 
    padding: 16px; 
    margin-bottom: 16px;
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
}

/* 🎯 核心優化：強制卡片內部所有資料一律高質感「靠左對齊」 */
.info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; /* 拉大每一行文字的垂直間距，拒絕擁擠 */
    text-align: left !important; /* 🚀 強制靠左對齊，消除凌亂的居中 */
}

.info h4 { 
    margin: 0; 
    font-size: 16px; 
    color: #ffffff; 
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-align: left !important;
}

/* 🎯 核心優化：為佳麗的細節介紹文字進行優雅的字體和行高格式化 */
.info p { 
    margin: 0; 
    font-size: 13px; /* 稍微放大字體，看得更舒服 */
    color: #f0f3f8; /* 更亮眼的高對比白灰色 */
    line-height: 1.7; /* 🚀 核心審美：將行高拉大到 1.7 倍，讓多行 Emoji 之間有充足的呼吸空間，絕不糊成一片 */
    text-align: left !important; /* 🚀 確保所有資料行首絕對對齊 */
    letter-spacing: 0.5px;
    width: 100%;
    word-break: break-all;
}

/* 🚀 完美復刻：流光蜜桃粉姬金屬行動按鈕 */
.action-btn { 
    background: linear-gradient(135deg, #ff5e97 0%, #ff3b70 100%); 
    color: #ffffff; 
    border: none; 
    padding: 11px 0; 
    width: 100%; 
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer; 
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(255, 59, 112, 0.35); 
    text-align: center;
}
.action-btn:active {
    transform: scale(0.98);
}

/* 多媒體元件排版 */
.preview-img { 
    width: 76px; 
    height: 102px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-right: 8px; 
    margin-bottom: 4px; 
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.preview-video { 
    width: 100%; 
    max-width: 100%; 
    height: 160px; 
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 6px; 
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #000; 
}

/* 進階高級組件控制 */
.img-gallery-mask { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 12, 22, 0.98); display: none !important; align-items: center; justify-content: center; z-index: 99999; 
}
.img-gallery-mask[style*="display: flex"] { display: flex !important; }
.img-gallery-mask img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.gallery-close { 
    position: absolute; top: 20px; right: 20px; color: #ff5e97; font-size: 32px; font-weight: bold; cursor: pointer; width: 44px; height: 44px; text-align: center; line-height: 42px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; border: 1px solid #ff5e97;
}
.gallery-nav { 
    position: absolute; bottom: 30px; color: #ff5e97; font-size: 14px; background: rgba(255, 255, 255, 0.9); padding: 6px 18px; border-radius: 20px; border: 1px solid #ff5e97;
}

.custom-popup-mask { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(6, 8, 12, 0.85); display: none !important; align-items: center; justify-content: center; z-index: 999999; 
}
.custom-popup-mask.show { display: flex !important; }
.custom-popup-box { 
    background: rgba(20, 24, 35, 0.95); border: 1px solid rgba(255, 94, 151, 0.3); padding: 25px; border-radius: 16px; width: 85%; max-width: 320px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7); box-sizing: border-box; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.custom-popup-title { font-size: 18px; font-weight: bold; color: #ff5e97; margin-bottom: 12px; }
.custom-popup-msg { font-size: 13px; color: #e2e5ec; line-height: 1.6; margin-bottom: 20px; }
.popup-btn-go { 
    width: 100%; background: linear-gradient(135deg, #ff5e97 0%, #ff3b70 100%); color: #ffffff; border: none; padding: 11px 0; border-radius: 8px; font-size: 14px; font-weight: bold; display: block; box-sizing: border-box; 
}
.popup-btn-cancel { 
    width: 100%; background: rgba(255,255,255,0.1); color: #e2e5ec; border: 1px solid rgba(255,255,255,0.15); padding: 9px 0; border-radius: 8px; font-size: 13px; cursor: pointer; 
}
