/* =========================================
   1. 規則說明區
   ========================================= */
.rule-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.rule-box h3 {
    margin-top: 0;
    color: var(--primary-gold, #fbb750);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { margin-bottom: 12px; color: #ddd; display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; font-size: 0.95rem; }
.check-list i { margin-top: 4px; flex-shrink: 0; width: 20px; text-align: center; }
.check-list li div { flex: 1; }

.effect-img { margin-top: 5px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }

/* 顏色工具 */
.text-gold { color: #ffd700; }
.text-green { color: #81c784; }
.text-red { color: #ff5252; }
.text-purple { color: #ab47bc; }
.highlight { color: #ffd700; font-weight: bold; }

/* =========================================
   2. 升級表格 (Table)
   ========================================= */
.wiki-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.wiki-table th { background: rgba(0, 0, 0, 0.5); padding: 12px; color: #aaa; border-bottom: 1px solid rgba(255,255,255,0.1); }
.wiki-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }

.lv-badge { background: #444; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.9rem; }

/* =========================================
   3. 陣營能力卡片 (Camp Cards)
   ========================================= */
.info-section { margin-bottom: 40px; } /* 增加區塊間距 */

.camp-header {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.dragon-theme {
    background: linear-gradient(90deg, transparent, rgba(239, 83, 80, 0.2), transparent);
    color: #ef5350;
    border-color: rgba(239, 83, 80, 0.3);
}

.demon-theme {
    background: linear-gradient(90deg, transparent, rgba(171, 71, 188, 0.2), transparent);
    color: #ab47bc;
    border-color: rgba(171, 71, 188, 0.3);
}

.camp-grid {
    display: grid;
    /* 電腦版：一排 2 個 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.camp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.camp-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.dragon-card { border-left: 4px solid #ef5350; }
.demon-card { border-left: 4px solid #ab47bc; }

.card-lv {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    min-width: 60px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 4px;
}

.card-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   4. RWD 手機版優化
   ========================================= */
@media (max-width: 768px) {
    /* 表格轉卡片 */
    .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: 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
    .wiki-table td { display: flex; justify-content: space-between; text-align: right; padding: 10px 15px; }
    .wiki-table td::before { content: attr(data-label); color: #aaa; font-weight: normal; }

    /* 陣營卡片單欄 */
    .camp-grid { grid-template-columns: 1fr; }
}