/* =========================================
   1. 導航列 (Nav Tabs)
   ========================================= */
.boss-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow-x: auto; /* 允許水平滑動 */
}

.boss-nav a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.boss-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.boss-nav a.active {
    background: var(--primary-gold, #fbb750);
    color: #000;
    font-weight: bold;
    border-color: var(--primary-gold, #fbb750);
}

/* =========================================
   2. BOSS 卡片網格 (Grid)
   ========================================= */
.boss-grid {
    display: grid;
    /* 自動適應寬度：電腦版一列 2~3 個，手機版 1 個 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.boss-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.boss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: var(--primary-gold, #fbb750);
}

/* 圖片容器 */
.boss-img-wrap {
    width: 100%;
    height: 200px; /* 固定高度，讓卡片整齊 */
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.boss-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 保持比例，完整顯示 */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

.boss-card:hover .boss-img-wrap img {
    transform: scale(1.1); /* hover 時微放大 */
}

/* 文字資訊 */
.boss-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(0,0,0,0.1));
    flex-grow: 1;
}

.boss-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-gold, #fbb750);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.boss-info p {
    margin: 10px 0 0 0;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 標籤樣式 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    font-weight: bold;
}
.tag-blue { background: #2196f3; color: #fff; }

/* 顏色工具 */
.text-gold { color: #ffd700; }

/* =========================================
   3. 手機版優化 (RWD)
   ========================================= */
@media (max-width: 768px) {
    .boss-grid {
        grid-template-columns: 1fr; /* 手機版單欄 */
        gap: 15px;
    }

    .boss-img-wrap {
        height: 180px; /* 手機版圖片高度稍微縮小 */
    }
}