/* =========================================
   容器設定
   ========================================= */
.tutorial-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* 步驟之間的距離 */
    padding: 10px 0;
}

/* =========================================
   步驟卡片 (Step Card)
   ========================================= */
.step-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    /* 防止內容溢出圓角 */
}

/* 左側數字徽章 */
.step-badge {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbb750, #d4af37);
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(251, 183, 80, 0.4);
    font-family: 'Segoe UI', sans-serif;
}

/* 右側內容區 */
.step-content {
    flex-grow: 1;
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: var(--primary-gold, #fbb750);
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    display: inline-block;
}

.step-content p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* 註解文字 */
.note {
    font-size: 0.9rem;
    color: #aaa;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.text-red {
    color: #ff5252;
    font-weight: bold;
}

/* =========================================
   圖片展示區
   ========================================= */
/* 盟徽預覽網格 */
.emblem-grid {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.emblem-grid img {
    width: 24px;
    /* 16x12 其實很小，這裡放大顯示 */
    height: 24px;
    image-rendering: pixelated;
    /* 讓像素圖放大不模糊 */
    border: 1px solid #555;
}

.more-dot {
    color: #888;
    letter-spacing: 2px;
}

/* 通用步驟圖片容器 */
.step-imgs {
    display: flex;
    flex-direction: column;
    /* 預設垂直排列圖片 */
    gap: 15px;
    margin-top: 15px;
}

/* 圖片樣式 */
.shadow-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.shadow-img:hover {
    transform: scale(1.02);
    border-color: var(--primary-gold, #fbb750);
}

/* 網格排列 (用於步驟5的多張圖) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 自動適應寬度 */
    gap: 15px;
}

.full-col {
    grid-column: 1 / -1;
    /* 佔滿整行 */
    width: 100%;
}


/* =========================================
   RWD 手機版優化
   ========================================= */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        /* 改為垂直排列 */
        gap: 15px;
        padding: 20px;
    }

    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        /* 手機版全部單欄 */
    }

    @media (max-width: 768px) {
        .content-box .emblem-grid img {
            width: 16px !important;
            height: 16px !important;
            object-fit: contain;
        }
    }

}