/* =========================================================
   cspecialMassacre.css
   - 電腦/手機最佳化
   - table 手機一列顯示一個欄位（卡片化）
   ========================================================= */

.wiki-content { color: #ddd; }

.content-box { padding: 14px 0; }

.page-hero { margin-bottom: 14px; }
.hero-img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  display: block;
}

.page-header h1{
  margin: 0;
  font-size: 1.65rem;
  color: #fbb750;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-line{
  margin-top: 12px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(251,183,80,0.7), rgba(251,183,80,0));
}

.hrr{
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 18px 0;
}

/* 區塊卡 */
.rule-box{
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.box-title{
  margin: 0 0 14px;
  color: #fbb750;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 標籤 */
.tag-green{
  color: #00FF0D;
  font-weight: 700;
}

/* 通用顏色 */
.text-blue{ color: #64b5f6; }
.text-green{ color: #81c784; }
.text-gold{ color: #fbb750; }
.highlight{ color: #fbb750; font-weight: 700; }

/* 清單 */
.check-list{ list-style: none; padding: 0; margin: 0; }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.65;
  color: #d6d6d6;
}
.check-list i{
  margin-top: 5px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  opacity: 0.95;
}
.check-list li div{ flex: 1; }

/* 連結按鈕 */
.link-btn{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(251,183,80,0.35);
  background: rgba(251,183,80,0.10);
  color: #fbb750;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.link-btn:hover{
  background: rgba(251,183,80,0.18);
  border-color: rgba(251,183,80,0.55);
  transform: translateY(-1px);
}

/* =========================================================
   怪物展示 Grid（取代 table）
   ========================================================= */
.monster-grid{
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
}

.monster-grid.cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.monster-grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.monster-card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.monster-title{
  font-size: 0.98rem;
  font-weight: 700;
  color: #b9ffbf;
  margin: 2px 0 10px;
}

.monster-card img{
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
}

/* =========================================================
   若頁面還有 table：手機版一列顯示一個欄位（卡片化）
   ========================================================= */
.table-responsive{ width: 100%; overflow-x: auto; }

.wiki-table{
  width: 100%;
  border-collapse: collapse;
  color: #ddd;
}

.wiki-table thead th{
  background: rgba(0,0,0,0.35);
  color: #f0c27b;
  font-weight: 700;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.wiki-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* =========================================================
   RWD
   ========================================================= */
@media (max-width: 1024px){
  .monster-grid.cols-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monster-grid.cols-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px){
  .page-header h1{ font-size: 1.4rem; }

  .monster-grid.cols-4,
  .monster-grid.cols-3{
    grid-template-columns: 1fr;
  }

  /* table 手機卡片化：一列顯示一個欄位 */
  .wiki-table thead { display: none; }
  .wiki-table, .wiki-table tbody, .wiki-table tr, .wiki-table td {
    display: block;
    width: 100%;
  }
  .wiki-table tr{
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
  }
  .wiki-table td{
    display: flex;
    justify-content: space-between;
    text-align: right;
    padding: 10px 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
  }
  .wiki-table td:last-child{ border-bottom: none; }
  .wiki-table td::before{
    content: attr(data-label);
    color: #8f8f8f;
    font-weight: 400;
    padding-right: 10px;
    text-align: left;
  }
}
