/* =========================================
   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;
}

/* 列表樣式 (包含 div 修正) */
.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; }

/* 顏色工具 */
.text-gold { color: #ffd700; }
.text-green { color: #81c784; }
.text-blue { color: #64b5f6; }
.text-purple { color: #ce93d8; }
.highlight { color: #ffd700; font-weight: bold; }
.intro-text { color: #ccc; margin-bottom: 10px; }

/* =========================================
   2. 連結按鈕網格
   ========================================= */
.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.link-card {
    flex: 1;
    min-width: 200px;
    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;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.link-card i { font-size: 1.2rem; color: var(--primary-gold, #fbb750); }
.link-card span { font-weight: bold; font-size: 1rem; }

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold, #fbb750);
    transform: translateY(-2px);
}

/* =========================================
   3. 能力圖片展示
   ========================================= */
.stat-img-box {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-img-box img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* =========================================
   4. 變身展示網格 (Transformation Grid)
   ========================================= */
.trans-grid {
    display: grid;
    /* 電腦版: 自動適應，一排約 2 個 */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.trans-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.trans-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-gold, #fbb750);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trans-body {
    display: flex;
    justify-content: space-around;
    padding: 15px 5px;
    align-items: flex-end;
}

.trans-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stage-img {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 增加一點背景光暈讓變身更明顯 */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%; 
}

.stage-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.stage-label {
    font-size: 0.85rem;
    color: #aaa;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================================
   5. RWD 手機版優化
   ========================================= */
@media (max-width: 768px) {
    /* 連結按鈕變單欄 */
    .link-card { width: 100%; justify-content: flex-start; }
    
    /* 變身卡片維持單欄，但內部圖片縮小以適應 */
    .trans-grid { grid-template-columns: 1fr; }
    
    .stage-img { width: 80px; height: 80px; }
    .stage-label { font-size: 0.8rem; }
}