/* =========================================
   1. 關聯教學按鈕 (Action Box)
   ========================================= */
.action-box {
    margin-bottom: 40px;
}

.action-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(251, 183, 80, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(251, 183, 80, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(90deg, rgba(251, 183, 80, 0.2), rgba(255, 255, 255, 0.1));
    border-color: var(--primary-gold, #fbb750);
    transform: translateY(-2px);
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gold, #fbb750);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.btn-text {
    flex-grow: 1;
}

.btn-text strong {
    display: block;
    color: var(--primary-gold, #fbb750);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.btn-text span {
    color: #ccc;
    font-size: 0.95rem;
}

.btn-arrow {
    color: #666;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.action-btn:hover .btn-arrow {
    transform: translateX(5px);
    color: #fff;
}

/* =========================================
   2. 步驟卡片 (Step Cards)
   ========================================= */
.tutorial-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* 數字標籤 */
.step-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbb750, #d4af37);
    color: #000;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 12px; /* 方圓角 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', monospace;
}

.step-content {
    flex-grow: 1;
    width: 100%; /* 確保內容撐開 */
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    display: inline-block;
}

.step-content p {
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.highlight {
    color: var(--primary-gold, #fbb750);
    font-weight: bold;
}

/* 圖片容器 */
.img-wrap {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.shadow-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. 手機版優化 (RWD)
   ========================================= */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column; /* 垂直排列 */
        padding: 20px;
    }

    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    /* 按鈕調整 */
    .action-btn {
        padding: 15px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
}