/* =========================================
   1. 建立流程 (Step Cards) - 橫向膠囊式
   ========================================= */
.tutorial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    flex: 1; /* 平均分配寬度 */
    min-width: 250px; /* 手機版會自動換行 */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

/* 數字標籤 */
.step-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbb750, #d4af37);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(251, 183, 80, 0.4);
    font-family: monospace;
}

.step-content h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =========================================
   2. 規則與指令 (Grid Cards)
   ========================================= */
.rules-grid {
    display: grid;
    /* 電腦版兩欄，手機版單欄 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s, border-color 0.2s;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    border-color: var(--primary-gold, #fbb750);
}

.rule-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.rule-text p {
    margin: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   3. 通用元件與圖片
   ========================================= */
.img-container {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.shadow-box {
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 指令標籤 (Command Tag) */
.cmd-tag {
    background: #333;
    border: 1px solid #555;
    padding: 2px 8px;
    border-radius: 4px;
    color: #81c784; /* 綠色文字 */
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 顏色工具 */
.text-gold { color: #ffd700; }
.text-red { color: #ff5252; }
.text-green { color: #81c784; }
.text-blue { color: #64b5f6; }
.text-gray { color: #9e9e9e; }
.highlight { color: #ffd700; font-weight: bold; }

.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.info-section {
    margin-bottom: 40px;
}

/* RWD */
@media (max-width: 768px) {
    .step-card {
        width: 100%; /* 手機版強迫滿寬 */
    }
}